开发者

Mercurial: include revisions in git diff?

Is there some way to ask Mercurial to show the revisions being diffed in the output when using git mode? For example:

$ hg diff -r trunk:development
diff -r 08d51ecf22cf:ff5673e55b9f --git a/foo.c b/foo.c
...

Or something similar?

I've found that there have been a few times that I've taken a diff (eg, to review), but have later been unable to recreate it because I've forgotten which revisions it was taken against.

Edit: the -v flag will开发者_StackOverflow中文版 show revisions in normal diff mode, but I've got to use git diff (I deal with binary files fairly regularly).


Use:

hg diff -v
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜