Previous revision

Augie Fackler durin42 at gmail.com
Sat Jun 20 21:33:28 CDT 2009


On Jun 20, 2009, at 8:01 PM, Krzysiek Pawlik wrote:

> Augie Fackler wrote:
>>
>> This is an interesting idea, but that's somewhat confusing when you
>> consider parentrevspec uses rev^ to mean the first parent of the  
>> revision.
>
> I find prefix less confusing, it's read as 'previous to' <rev>.

I'm saying that your prefix is confusing in light of the already- 
existing syntax from parentrevspec.

>
>>> The change is in cmdutil.py file so any command that uses -r gains
>>> this ability.
>>
>> This feels like it belongs in an extension to me, but I've also got  
>> the
>> previously mentioned concern about similarity to the existing
>> parentrevspec extension.
>
> The extension can provide new command, not change how revranges are  
> parsed
> (unless there's something that I don't know about).
>
> But with `hg diff -c' this patch has become a neat way to save  
> typing for other
> commands.

Take a look here:
http://www.selenic.com/hg/index.cgi/file/tip/hgext/parentrevspec.py

>
>>> If there are no objections I'd like the patch be applied to main.
>
> -- 
> Krzysiek Pawlik (Nelchael)       GPG Key ID: 0xBC555551
>      http://www.linkedin.com/in/krzysiekpawlik
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list