开发者

Tag diffing in mercurial

In mercurial is there a way to diff between 2 different tags?

I开发者_运维知识库 have tagged my builds and have a couple commits in between builds and want to figure out the differences between the 2 builds.


hg diff -r tag1:tag2

That's all there is to it.


This answer in the Kiln StackExchange seems quite complete (based on hg diff and hg log):

To see all of the changesets that were introduced between, say, the tags v1.0 and v1.1, run:

hg log -r v1.0:v1.1

To see the net sum of differences introduced in those revisions, you'd instead run:

hg diff -r v1.0:v1.1

Mercurial can even format this output in changelog-style, if you want. Simply add the --style changelog parameter:

hg log -r v1.0:v1.1 --style changelog
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜