From: Bruno H. <br...@cl...> - 2018-01-23 07:24:13
|
> Looks like I managed mess up "hg up". The distinction between "hg pull && hg update" and "hg pull --update" [1] is something that I find very confusing in 'hg'. So, in order to never use "hg pull" alone, I'm using this script in my $PATH: ================================== hg ================================== #!/bin/sh # "hg pull" without --update is always a mistake. HG=/usr/bin/hg if test $# = 1 -a "x$1" = xpull; then exec ${HG} pull --update else exec ${HG} "$@" fi ======================================================================== Hope this helps. Bruno [1] https://stackoverflow.com/questions/15241394/mercurial-command-to-combine-hg-pull-hg-up |