Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tag diffing in mercurial

Tags:

diff

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.

like image 701
Tyler Smith Avatar asked Feb 17 '11 14:02

Tyler Smith


2 Answers

hg diff -r tag1:tag2

That's all there is to it.

like image 121
Chris R Avatar answered Nov 16 '22 00:11

Chris R


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
like image 40
VonC Avatar answered Nov 15 '22 23:11

VonC