Subversion can't merge after a move

后端 未结 4 568
予麋鹿
予麋鹿 2020-12-16 12:59

I\'m very new to Subversion, but I\'ve used other revision control systems like ClearCase for years.

My boss asked me to fix this project so that it could be built w

4条回答
  •  粉色の甜心
    2020-12-16 13:25

    To answer your question directly:

    Is there a way to make Subversion do the revision management, or am I going to be manually merging this guy’s changes for the next two days?

    You should be able to make it a little bit easier on yourself.

    One thing that you can do to alleviate some of the pain (assuming a layout as follows)

    /branch/foo/src/com
    /branch/foo/test/com
    /trunk/src/main/java/com
    /trunk/src/test/java/com
    

    Before you moved src/com to src/main/java/com and test/com to src/test/java/com you could have done:

    cd $TRUNK
    svn merge -r N:M http://server/branch/foo .
    

    What you could do now is:

    cd $TRUNK
    svn merge -r N:M http://server/branch/foo/src/com src/main/java/com
    svn merge -r N:M http://server/branch/foo/test/com src/test/java/com
    

    Hope this helps to save you some time.

提交回复
热议问题