开发者

Compare working copy with specific repository [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

SVN diff across 2 different repositories

How can I compare a working copy with a repository different than the one which the working copy is associated?

I need this comparison, because I was forced to apply some changes directly on the production server (current version connected to a tag) and I 开发者_运维技巧would like to check if those changes were already applied on trunk.


Checkout both and use a diff tool like Kdiff3


If you are going to compare against a specific revision then you can create a patch of the working copy and a patch of the specific revision in the other repo and then do a diff to see if the patch files match or not.

Or if you have TortoiseSVN installed you can do the following:

Difference to another branch/tag

If you want to see what has changed on trunk (if you are working on a branch) or on a specific branch (if you are working on trunk), you can use the explorer context menu. Just hold down the Shift key while you right click on the file. Then select TortoiseSVN → Diff with URL. In the following dialog, specify the URL in the repository with which you want to compare your local file to.

Source: Viewing Differences

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜