Find difference between trunk and branch?

前端 未结 4 993
不知归路
不知归路 2021-01-30 06:06

Is there a way to find the differences between the trunk and say a branch 0.4.x?

I need to create a tag - however I can\'t remember if my lates

相关标签:
4条回答
  • 2021-01-30 06:47

    If you have a checkout of the repository at hand, you can use the ^ (caret, search for it in the manual) notation to reference the root of the repo like this:

    svn diff --old ^/branches/0.4.x --new ^/trunk
    

    This works since Subversion 1.6.

    If you have an older subversion or no handy checkout of the repo, you can use absolute paths, as described in the original redbook:

    svn diff --old http://.../repo/branches/0.4.x --new http://.../repo/trunk/
    

    should give you the answer you're looking for.

    Replace http://.../repo/ with the actual URL of your repository.

    0 讨论(0)
  • 2021-01-30 06:49
    svn diff ^/trunkUrl/fileName ^/branchUrl/fileName
    

    This will give you the difference between a file in branch and trunk.

    0 讨论(0)
  • 2021-01-30 06:53

    If you just want to diff against the current branch, you can just use a dot .

    svn switch ^/branches/branchName
    svn diff . ^/trunk
    
    0 讨论(0)
  • 2021-01-30 07:05

    You can use the meld tool for comparison instead of using command prompt to see the difference. It goes something like this.

    svn diff --diff-cmd='meld' --old http://.../repo/branches/0.4.x --new http://.../repo/trunk/
    
    0 讨论(0)
提交回复
热议问题