Re: hg pull, hg update

Bruno Haible <[email protected]> Tue, 23 Jan 2018 08:24:02 +0100
Newsgroups gmane.lisp.clisp.devel
Message-ID <2240188.RDigp1boTn@omega>
> 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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel