--last option

Henryk Gerlach hgerlach at gmx.de
Thu Dec 11 19:08:34 UTC 2008


> While I'm at it: I'm fond of the --last option that Darcs
> provides to select a range of changesets starting from tip.
> 
> How about adding it to "hg diff", "hg log" and possibly
> others?
You can also use the "-r" option with negative values:

hg log -r 1:5

revisions 1 till 5

hg log -r 2:-3

revision 2 till  (tip -3+1)

hg log -r -1 
same as
hg log tip

(the semantics stem from the python lists)

Have fun,

  Henryk
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger



More information about the Mercurial mailing list