'git show' equivalent?

Jason Orendorff jason.orendorff at gmail.com
Thu Dec 18 15:10:17 UTC 2008


On Thu, Dec 18, 2008 at 7:58 AM, Leslie P. Polzer
<sky at viridian-project.de> wrote:
>
> How can I achieve the effect of 'git show' in hg?
>
> This command displays the diff to parent(s) for a
> certain changeset.

For a non-merge changeset, just use hg log -p (for "patch"):
  hg log -r REV -p

But hg log does not have all the diffing options like -w, -b, -U.  For
merge changesets, this only shows you the diff to the first parent. To
see the diff against the other parent, or use diff options, you would
need to use "hg parents" and "hg diff".

-j



More information about the Mercurial mailing list