[整理]svn commit obstructed

用svn提交时,某个文件夹提交失败,显示missing (obsturcted)状态。

经查找网上有一些解决办法。可能是误删除了.svn目录(Subversion进行控制所依赖的.svn目录,是一个隐藏目录,里面包括了Subversion要用到的版本控制的信息),这一目录删除了之后,客户端便丢失了版本控制的信息,新建的目录名字又是和原来Subversion中一样的文件名,提交的时候一直出现某某目录“阻碍(obstructed)”或者某某目录不在版本控制之下,导致提交失败。

 

(1)Try a 'Clean Up' of the folder or the entire working copy.

(2)You've probably deleted/moved some files / directories directly from the file system, and not through SVN commands. This can sometimes lead to a directory becoming obstructed if it can not work out the differences against the repository.

Try performing a clean-up first, and if that fails, revert that directory and try use SVN commands for changing directory file structure (delete/move).

 

(3)

If the .svn sub-directory is missing the directory is marked obstructed as SVN has no way of knowing the directory's status any more. Most likely clean-up or revert isn't able to fix it, since local svn data is gone, so you got two options:

  1. rm the directory and update to get latest working copy
  2. if the directory contains valuable, changed stuff, check out the latest working copy in a temp directory and manually copy the missing .svn directories in place, then SVN is again able to make sense of it.

(4)it occurs when you have deleted or moved the .svn subdirectories (without going through SVN commands), so SVN has a corrupted view of the working copy.

Try a cleanup first, and if that doesn't solve it, revert (or update) the directory to restore the subdirectory .svn folders.

 

(5)

This means that, for some reason, a conflict has occurred during the operation. Check to see if there is an existing unversioned file or folder with the same name as a versioned one.

(Paraphrased from the Tortoise SVN client help file)

 

可以先将库里有冲突的文件夹删除,然后再在本地新建提交该文件?

 

 

参考:

http://svn.haxx.se/tsvn/archive-2005-10/0235.shtml
http://niyue.com/2005/07/
http://stackoverflow.com/questions/335980/what-causes-svn-commit-to-fail-and-report-a-file-dir-as-obstructed

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答:根据你提供的引用信息,你在执行svn commit命令时遇到了问题。错误信息显示说文件'/export/js/aa.js'仍然处于冲突状态,导致提交失败。通常情况下,在working copy目录中进行文件操作时,比如删除或移动文件,应该使用svn del或svn move命令,而不是直接使用终端的rm或mv命令。这样才能确保svn能够跟踪到文件的变化并正确提交。除此之外,如果你不想将某个文件纳入版本控制,可以使用svn revert命令进行回滚到服务器上最新的版本。例如,执行svn revert .project可以回滚.project文件。如果需要回滚整个文件夹,则可以执行svn revert -R path。请根据这些信息检查你的操作并尝试解决冲突后再次提交。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [svn篇之提交svn commit 提示Aborting commit 问题解决](https://blog.csdn.net/xu710263124/article/details/128244911)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [如何在Ubuntu下用SVN commit](https://blog.csdn.net/weixin_39595164/article/details/116673481)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [svn——svn commit 用法](https://blog.csdn.net/qq_39790633/article/details/103700391)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值