Wrong hg diff output (P.S.)
Tony Mechelynck
antoine.mechelynck at gmail.com
Sun Aug 5 16:55:51 UTC 2012
On 05/08/12 18:51, Tony Mechelynck wrote:
> On 05/08/12 17:03, Matt Mackall wrote:
>> On Fri, 2012-08-03 at 02:22 -0700, praveen_m86 wrote:
>>> hg diff -r 350:350
>>
>> I'm pretty sure you'll find that revision 350 is exactly the same as
>> revision 350. Thus, your lack of diff output is correct.
>>
>> If you want to compare your working directory (with _parent_ 350)
>> against 350, do:
>>
>> hg diff -r 350
>>
>> or
>>
>> hg diff -r .
>>
>> or simply
>>
>> hg diff
>>
>
> Yes, and if you want to compare 349 with 350, you can use
>
> hg diff -r 349 -r 350
>
> which I think worked even before revsets were introduced, and will go on
> working AFAICT.
>
> Note that "working directory" in the documentation includes any
> uncommitted changes that you may have made. The "parent" of that working
> directory is then the changeset to which you last "updated" (which may
> be implicitly, e.g. with hg pull -u, with hg clone without -U, or with
> hg fetch, which is part of the fetch extension). IOW, if you made no
> changes since the last pull, hg diff should show nothing, not the
________/^\________
/ with no arguments \
> differences _made_ by the last pull or even the last commit.
>
>
> Best regards,
> Tony.
--
Checkuary, n.:
The thirteenth month of the year. Begins New Year's Day and
ends when a person stops absentmindedly writing the old year on his
checks.
More information about the Mercurial
mailing list