开发者

How To Handle Re-Created Directories In A Subversion Working Copy?

开发者 https://www.devze.com 2022-12-11 09:31 出处:网络
Scenario: a User deletes a directory from a SVN Working Copy and afterwards she creates a new directo开发者_JAVA技巧ry in the WC at the same location and using the same name. So, before we had a direc

Scenario: a User deletes a directory from a SVN Working Copy and afterwards she creates a new directo开发者_JAVA技巧ry in the WC at the same location and using the same name. So, before we had a directory including svn information and now we have a directory with the same name w/o svn information.

Can subversion handle this? How?

Thanks in advance


Remove the "new" folder (just cut it and paste it in a new folder outside your WC. Then do an update on the whole folder and the original folder will return. Then you can cut and paste the contents of your "new" folder into the original folder and add them and check them in as normal.


svn update deletedFolder --force will bring it back and merge in any changes that exist in the local version of the folder.


You only have to submit the deleted state to repository. After that you can create a new directory with the same name and subversion will get it as new.

0

精彩评论

暂无评论...
验证码 换一张
取 消