How to get diff between all files inside 2 folders that are on the web?

前端 未结 2 1543
予麋鹿
予麋鹿 2021-01-29 20:17

So I want to compare this folder http://cloudobserver.googlecode.com/svn/branches/v0.4/Boost.Extension.Tutorial/libs/boost/extension/ with this http://svn.boo

相关标签:
2条回答
  • 2021-01-29 21:07

    Once you have the source trees, e.g.

    diff -ENwbur repos1/ repos2/ 
    

    Even better

    diff -ENwbur repos1/ repos2/  | kompare -o -
    

    and have a crack at it in a good gui tool :)

    • -Ewb ignore the bulk of whitespace changes
    • -N detect new files
    • -u unified
    • -r recurse
    0 讨论(0)
  • 2021-01-29 21:11

    You urls are not in the same repository, so you can't do it with the svn diff command.

    svn: 'http://svn.boost.org/svn/boost/sandbox/boost/extension' isn't in the same repository as 'http://cloudobserver.googlecode.com/svn'
    

    Another way you could do it, is export each repos using svn export, and then use the diff command to compare the 2 directories you exported.

    // Export repositories
    svn export http://svn.boost.org/svn/boost/sandbox/boost/extension/ repos1
    svn export http://cloudobserver.googlecode.com/svn/branches/v0.4/Boost.Extension.Tutorial/libs/boost/extension/ repos2
    
    // Compare exported directories
    diff repos1 repos2 > file.diff
    
    0 讨论(0)
提交回复
热议问题