Comparing revisions in Mercurial
Coming from Subversion I have used the "Mark For Comparison" and "Compare URLs" feature开发者_运维技巧 in TortoiseSVN. This gave me the ability to compare the development branch with the last release version to get a list of files that changed.
We use this list of files for final code review, documentation of the next version, etc.
As you can see it is possible to get a list of files and also be able to click each file to see a visual diff of the changes.
Is it possible to do something similar with Mercurial? The best I have found thus far is this command, however the list of files is far less useful than what I was able to get with Subversion.
hg status --change {revisionnumber}
On the command-line you can:
hg diff -r <first changeset> -r <second changeset>
orthg vdiff -r <first changeset> -r <second changeset>
In TortoiseHg, you can also select the 2 revisions you want to compare and get a visual diff as shown below:
精彩评论