function hg_pull_and_see() { if ! $HG_ROOT_CMD > /dev/null; then print "Not a Mercurial repository!" return -1 fi local i=$(hg id -i) hg pull -u local j=$(hg id -i) if [[ $i != $j ]];then hg log --quiet -r${i}:tip --style=changelog fi }