#!/bin/sh -x hg init echo a > a hg add a hg commit -t "test" -u test -d "0 0" hg history hg tag -u test -d "0 0" "bleah" hg history echo foo >> .hgtags hg tag -u test -d "0 0" "bleah2" || echo "failed"