'git show' equivalent?

Christian Ebert blacktrash at gmx.net
Thu Dec 18 08:33:12 CST 2008


* 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

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html


More information about the Mercurial mailing list