4

1

Is there a way in Tortoise, VisualHG, or Kiln, to actually see the history of one file, and then select any two revisions from that history and see a diff between them?

This is a trivial use case in SVN that I'm shocked to not be able to find yet in Hg...

Please tell me its there :)

OMG, this link seems to say that Hg does not provide this functionality? Say it aint so!

EDIT: Just to clarify, I'm really hoping for a GUI way to do this..

flag

2 Answers

8

In the Repository Explorer (started with hgtk log on my Linux system) pick a changeset affecting the file in question. Right-click on the file name in the lower-left list. Choose "File History" from the menu.

You will now have narrowed the log to only that file. Click on the first revision you want to compare, then right-click on another revision. Choose "Diff with selected" from the menu. You will now see the differences between those two revisions.

(This is just the point-and-click version of Jason's answer.)

link|flag
thank you! much appreciated. – travislaborde Apr 2 2010 at 11:30
3

Yup try:

hgtk diff -r [revision 1] -r [revision 2] C:\path\to\your\file.txt

link|flag
1 
Holy Moly Batman!! There isn't a GUI for this? Thanks for showing me that tho... – travislaborde Apr 2 2010 at 2:09

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.