changes in a branch
Bela Babik
teki321 at gmail.com
Mon Jul 23 00:05:38 CDT 2007
There is a typo in the script, a function version:
function hgbst()
{
if [ "x$1" == "x" ]; then x=head; else x=$1;fi
xid=""
for p in $(hg parents --rev $(hg identify -i) --template {parents}); do
pb=$(hg log -r $p --template {branches})
if [ "0$pb" == "0$x" ]; then
xid=${p#*:}
break
fi
done
if [ "x$xid" == "x" ]; then
echo "# ERROR: branch not found"
return 1
else
hg status --rev $xid
fi
return 0
}
--
teki
> # x=head;for p in $(hg parents --rev $(hg identify -i) --template
> {parents}); do pb=$(hg log -r $p --template {branches}); if [ "0$pb"
> ==
> "0$x" ]; then xid=${act#*:}; break;fi;done;hg status --rev $xid
>
More information about the Mercurial
mailing list