Friday, October 22, 2010

Mercurial merging tip

This trick helps doing a lot of merges in a commandline
hg merge `hgrev dev`
where hgrev is a bash function for finding the changeset hash:
hgrev() { local headname=$1; local rev=`hg head $headname | head -n 1 | gawk '{split($2,a,":"); print a[2]}'`; echo $rev }

No comments:

Post a Comment