A sane way to rename a directory in subversion working copy

前端 未结 4 1444
Happy的楠姐
Happy的楠姐 2021-02-02 05:05

While somehow versed in VCS (regular svn, git and git-svn user) I can\'t seem to wrap my head around this peculiar SVN behavior.

Whenever I need to rename a directory in

4条回答
  •  情书的邮戳
    2021-02-02 05:43

    This worked for me:

    vi someotherfile
    ...various changes to the other file
    svn mv olddir newdir
    svn commit -m"Moved olddir out of the way" olddir
    svn commit -m"New location of olddir" newdir
    svn update
    svn commit -m"Changed someotherfile" someotherfile
    

    I suspect that there were various other possible ways round, and that ensuring there was a clean working directory before doing the svn mv would also have done the trick.

提交回复
热议问题