add revision range selection to log

TK Soh teekaysoh at yahoo.com
Sat Jul 16 07:30:21 UTC 2005



--- Thomas Arendsen Hein <thomas at intevation.de> wrote:

> * TK Soh <teekaysoh at yahoo.com> [20050716 05:29]:
> > This patch let log -r take the A:B range notation for selecting range of
> > revisions, as seen on the export command:
> > 
> >    $ hg log -r1:3 -r8    # select revision 1,2,3 and 8
> 
> This drops the compatibility to 'hg diff' with two -r options. Is
> this still important to anyone? Matt seemed to like this very much,
> as I did, too, but I'm now convinced that it should work like it is
> implemented by TK Soh.

Diff works based on two revisions, instead of range of revision. BTW, it
doesn't seem to me that log's two-rev options is to maintain the compatibility.
It's used to specify range of revisions, something the range notation does much
better, IMHO.

> Matt or anyone else, objections to this?
> 
> > -    -r, --rev <A>, ...  When a revision argument is given, only this file
> or
> > +    -r, --revision <rev>  When a revision argument is given, only this
> file
> 
> Why --revision? At the moment only hg annotate uses this, which
> probably should be changed, too. All others use --rev.
> Patch for annotate is attached and in my tree.

Most, if not all, programs that allows long opts use full word(s) instead of
shorthand, so I thought revision seemed more 'conforming' than rev.



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



More information about the Mercurial mailing list