author | Mikael Berthe <mikael@lilotux.net> |
Sun, 15 Jul 2012 01:37:40 +0200 | |
changeset 9 | d7843f267d79 |
parent 4 | ca432c482cc9 |
child 10 | ed98b8ea395d |
permissions | -rw-r--r-- |
function hg_pull_and_see() { if ! $HG_ROOT_CMD > /dev/null; then print "Not a Mercurial repository!" return -1 fi local i=$(hg id --num) local i_h=$(hg id --id) hg pull -u local j=$(hg id --num) local j_h=$(hg id --id) if (( $i != $j ));then print "\nChangelog from ${i_h} to ${j_h}..." hg log --quiet --style=changelog -r "not ancestors($i)" fi }