开发者

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.

Comparing revisions in Mercurial

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> or
  • thg 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:

Comparing revisions in Mercurial

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜