开发者

show revision diff using psvn

Is there a way to diff two arbitrary revisions i开发者_Python百科n psvn? I'd like to have possibility to get diff/ediff for a file in the svn-status window.

I only found svn-file-show-svn-diff which shows diff between a working copy and HEAD


For a diff, press C-u before = (M-x svn-file-show-svn-diff), and it will interactively prompt you for a revision. At this point put in the revisions you like to compare in arb1:arb2 form. Then the svn-diff buffer will show the changes between arb1 and arb2 revisions in diff unified form.

For an ediff, the above unfortunately does not work and I believe it is not possible with the current svn-file-show-svn-ediff function, it seems you need to be in the svn-log buffer and on a file path line to make it work. First get into the svn-log buffer by pressing l on the desired file in the svn-status buffer. Then, press C-u then E (M-x svn-log-ediff-specific-revision). Then specify your arb1 and arb2 revisions in arb1:arb2 form.

Edit: added svn-log-ediff-specific-revision, from revision 40434 (2009-11-09).


C-x v l then select the 2 versions you want to diff and hit d

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜