如何解决在父目录不再受版本控制后,如何提交SVN删除?
| 我正在清理Subversion目录,包括删除jquery-ui目录(我认为已经提交)并将子目录的内容移至其父目录。 (我在Linux命令行上工作。) 一长串尝试的解决方法中的最后一个给出:jonathan@machine:~/svn3/coms_poc_ajax/trunk/coms/static$ svn update jquery-ui
At revision 53.
jonathan@machine:~/svn3/coms_poc_ajax/trunk/coms/static$ svn delete jquery-ui
D jquery-ui
jonathan@machine:~/svn3/coms_poc_ajax/trunk/coms/static$ svn commit jquery-ui
svn: Commit failed (details follow):
svn: \'/svn/coms_poc_ajax/trunk/coms/static\' path not found
svn: Your commit message was left in a temporary file:
svn: \'/home/jonathan/svn3/coms_poc_ajax/trunk/coms/static/svn-commit.2.tmp\'
因此,我尝试使用源代码管理注册目录:
jonathan@machine:~/svn3/coms_poc_ajax/trunk/coms/static$ cd ..
jonathan@machine:~/svn3/coms_poc_ajax/trunk/coms$ svn add static
svn: warning: \'static\' is already under version control
jonathan@machine:~/svn3/coms_poc_ajax/trunk/coms$ svn commit static
...
svn: Commit failed (details follow):
svn: File \'static/jquery-ui\' is out of date
svn: \'/svn/coms_poc_ajax/!svn/wrk/a41dde0b-6ccd-43cf-80d6-c237fc63ceda/trunk/coms/static/jquery-ui\' path not found
svn: Your commit message was left in a temporary file:
svn: \'/home/jonathan/svn3/coms_poc_ajax/trunk/coms/svn-commit.3.tmp\'
我需要做些什么来驱除jquery-ui目录中的幽灵并恢复到正常提交更新?
解决方法
如果指定完整的URI,则可以直接在存储库中删除目录。
假设您的目录位于https:// mysvn / svn3 / coms_poc_ajax / trunk / coms / static / jquery-ui,则可以使用以下语句将其删除。
svn rm https://mysvn/svn3/coms_poc_ajax/trunk/coms/static/jquery-ui -m\"removing jquery-ui\"
,我尝试了两个答案,但仍在与Subversion作战。我进行了一次新的签出,这似乎消除了服务器和我的副本之间是否存在目录X(至少现在是这样)的差异。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。