hg history
Kevin Smith
yarcs at qualitycode.com
Fri Jul 1 07:32:16 CDT 2005
Thomas Arendsen Hein wrote:
> Giving longer lists is still possible with more than two -r
> arguments, e.g. displaying only tip and 0.6 with:
>
> hg log -r tip -r tip -r 0.6
> \___range___/
Icky! I really don't like having a series of -r parameters where
alternate ones have different meanings. Pasting and editing a previous
command that worked could get very confusing. Also, there is ambiguity
because I would expect this to give me three independent logs, one for
each of the mentioned revisions:
hg log -r 0.1 -r 0.2 -r 0.3
Perhaps we could use some delimeter so you have something more like:
hg log -r tip:0.6 -r 0.4 -r 0.3:0.2
Or I would be happy with this:
hg log --from tip --to 0.6 -r 0.4 --from 0.3 --to 0.2
Or maybe
hg log -r tip 0.6
for a single range, and if you want more than one range, pass a text
file that has them listed:
hg log -f revision-ranges.txt
Or maybe it's just not worth allowing multiple ranges on one command line?
Kevin
More information about the Mercurial
mailing list