博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
svn: how to resolve “local edit, incoming delete upon update” message
阅读量:6239 次
发布时间:2019-06-22

本文共 1783 字,大约阅读时间需要 5 分钟。

[link:]

Short version:

$ svn st!  +  C foo      >   local edit, incoming delete upon update!  +  C bar      >   local edit, incoming delete upon update$ touch foo bar$ svn revert foo bar$ rm foo bar

Long version:

This happens when you edit a file, while someone else deleted the file and commited first. As a good svn citizen you do an update before a commit. Now you have a conflict. Realising that deleting the file is the right thing to do, you delete the file from your working copy. Instead of being content, svn now complains that the local files are missing, in addition to the conflicting update which ultimately wants to see the files deleted. Good work, svn.

Should svn resolve not work, for whatever reason, you can do the following:

Initial situation: Local files are missing, update is conflicting.

$ svn st!  +  C foo      >   local edit, incoming delete upon update!  +  C bar      >   local edit, incoming delete upon update

Recreate the conflicting files:

$ touch foo bar

New situation: Local files to be added to the repository (yeah right, svn, whatever you say), update still conflicting.

$ svn stA  +  C foo      >   local edit, incoming delete upon updateA  +  C bar      >   local edit, incoming delete upon update

Revert the files to the state svn likes them (that means deleted):

$ svn revert foo bar

New situation: Local files not known to svn, update no longer conflicting.

$ svn st?       foo?       bar

Now we can delete the files:

$ rm foo bar

svn no longer complains:

$ svn st

Done.


Note: the same procedure also work for the following situation:

$ svn st!     C foo      >   local delete, incoming delete upon update!     C bar      >   local delete, incoming delete upon update

转载于:https://www.cnblogs.com/MagicLetters/archive/2012/04/17/2453678.html

你可能感兴趣的文章
committed access rate(CAR)承诺访问速率
查看>>
我的友情链接
查看>>
c#访问mysql数据库
查看>>
Postfix 邮件路由和传输研究
查看>>
Servlet学习小结
查看>>
“深入剖析WCF的可靠会话”系列[共8篇]
查看>>
装XP-呼唤可信的技术,呼唤可信的盘。
查看>>
中国***江湖之八大门派
查看>>
算法图解-动态规划
查看>>
Nginx 优化
查看>>
大家放弃XP,开始尝鲜吧……
查看>>
yii2 自动写入update_at,create_at字段
查看>>
PXE批量实现自动化安装系统
查看>>
13.组合查询--SQL
查看>>
find命令学习
查看>>
ESXi 5 USB 启动
查看>>
HPUX升级安装SSH
查看>>
压力测试工具Curl-Loader
查看>>
2016年3月23日作业
查看>>
mysql编码
查看>>