Command to get svn diff of current and previous revision number

六眼飞鱼酱① 提交于 2019-12-02 15:44:11

As per your comments you'd like to see differences between the current and previous versions of an item that is not in your working copy. For that you need to know the item's URL (e.g. svn://[repo_root]/[path]/[item]) which I assume you do. Then you do the following:

svn info <item-URL>

will contain (among other things) the last change revision. With that revision number R you run:

svn diff -c <R> <item-URL>

and it will give you the last commit diff.

Konerak

svn diff -r HEAD <item> if you want to get the difference between your working copy and the last committed revision.

svn diff -r PREV:COMMITTED <item> if you want to see what the last commit did.

You should take look at Revision Keywords.

svn info <item> will give you (among other things) the last change revision for the item.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!