Subversion diff --summarize only shows old paths

前端 未结 1 572
闹比i
闹比i 2021-01-24 07:18

If I do this:

svn diff
   --summarize
   --old http.../svn/project/trunk
   --new http.../svn/project/branches/branch

I get a list like this:

相关标签:
1条回答
  • 2021-01-24 08:05

    You are comparing the HEAD of trunk and the branch, essentially asking "what needs to happen to trunk to make it the same as branch?", so the answer is in terms of changes to trunk. If you swap old and new, you will get the same list of files, in terms of the branch, but with the opposite operation.

    If a file was added in the branch and not trunk, and you run your existing diff (old=trunk, new=branch) you see:

    A    http:.../project/trunk/file
    

    If you swap old and new (new=branch, old=trunk), you'll get:

    D    http:.../project/branches/branch/file
    
    0 讨论(0)
提交回复
热议问题