【发布时间】:2019-06-06 21:50:38
【问题描述】:
将 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.
关于如何在 repo 中获取此子目录的建议: mcsu ?它在服务器上。
【问题讨论】:
-
你真正想做什么?在服务器或工作副本上移动服务器部分?因为您在同一个问题中混合了 svn mv 和 mv .svn 目录。另外,请注明_
_和 的形式是什么。它们是真实的路径还是 URL?