'git show' equivalent?
Benoit Boissinot
bboissin at gmail.com
Thu Dec 18 08:45:01 CST 2008
On Thu, Dec 18, 2008 at 3:33 PM, Christian Ebert <blacktrash at gmx.net> wrote:
> * Leslie P. Polzer on Thursday, December 18, 2008 at 14:58:29 +0100
>> How can I achieve the effect of 'git show' in hg?
>>
>> This command displays the diff to parent(s) for a
>> certain changeset.
>
> With the parentrevspec extension enabled:
>
> $ hg diff -r 516^1:516
>
> Or, if you don't have the extension (yet), something like:
>
> $ for p in `hg parents --template='{node}\n' -r 516`; do hg diff -r $p:516; done
>
And soon we will have hg diff -c <rev>.
regards,
Benoit
More information about the Mercurial
mailing list