Using '..' to refer to parent revision
Julian Cowley
julian at lava.net
Mon May 12 17:53:17 CDT 2008
On Mon, 12 May 2008, Adrian Buehlmann wrote:
> On 12.05.2008 00:00, Julian Cowley wrote:
>> I was just thinking that having a '..' would be really useful (assuming
>> there's only one parent). Then one could do something like:
>>
>> hg diff -r ..
>> hg up ..
>>
>> Perhaps there is another way to do this?
>
> http://www.selenic.com/mercurial/wiki/index.cgi/ParentrevspecExtension
Excellent, that's what I was looking for. The syntax is a little odd in
my opinion, but it does work. The examples above become:
hg diff -r .^
hg up .^
--
The revolution has been cancelled due to low ratings.
More information about the Mercurial
mailing list