Command to get svn diff of current and previous revision number

前端 未结 2 1330
挽巷
挽巷 2021-01-30 12:41

How can I get diff in file content of current and previous revision number by command line?

And how can I get previous revision number?

2条回答
  •  青春惊慌失措
    2021-01-30 13:27

    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 
    

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

    svn diff -c  
    

    and it will give you the last commit diff.

提交回复
热议问题