gpt4 book ai didi

linux - SVN: 删除 repo 子目录

转载 作者:太空宇宙 更新时间:2023-11-04 11:49:29 25 4
gpt4 key购买 nike

将 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?它在服务器上。

最佳答案

我最终尝试:

svn revert --depth infinity mcsu

这似乎奏效了。不确定这是正确的解决方案还是犹太洁食?

关于linux - SVN: 删除 repo 子目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56485526/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com