SVN:删除的回购子目录

时间:2019-06-06 21:50:38

标签: linux svn

将SVN存储库移动到另一个目录时

svn mkdir <new-repo-dir>
svn move <subdir-1> <new-repo-dir>
...
svn move <subdir-n> <new-repo-dir>
mv .svn <new-repo-dir>

然后我遇到了一个问题:

svn move mcsu/ MCSU_BLOCK2/
svn: E155035: Cannot handle status of '/run/media/jski/4c038dee-2d01-462e-beff-f68ac9b11efa/mcsu'
svn: E200042: Additional errors:
svn: E155010: The node '/run/media/jski/4c038dee-2d01-462e-beff-f68ac9b11efa/MCSU_BLOCK2/mcsu' was not found.

然后我删除了mcsu /:

svn delete mcsu/ --force

并尝试使用以下方法恢复它:

svn update

最后是这样:

Updated to revision 493.
Summary of conflicts:
  Tree conflicts: 1
Searching tree conflict details for 'mcsu' in repository:
 done
Tree conflict on 'mcsu':
Changes destined for a directory arrived via the following revisions during backwards update from r493 to r493:
 (no revisions found)
A deleted directory was found in the working copy.
Select: (p) Postpone, (r) Mark as resolved,
        (u) Update any moved-away children, (h) Help,
        (q) Quit resolution: u
Tree conflict at 'mcsu' marked as resolved.
Summary of conflicts:
  Tree conflicts: 0 remaining (and 1 already resolved)

我为恢复mcsu /所做的一切努力没有任何结果:

svn update
Updating '.':
Authentication realm: <https://path-to-repo:443> Subversion Repositories
Password for '<name>': ***************

At revision 493.

有关如何在回购中获得此子目录的建议:mcsu?在服务器上。

1 个答案:

答案 0 :(得分:0)

我最终尝试:

svn revert --depth infinity mcsu

似乎有效。不确定这是正确的解决方案还是什锦?