开发者

Stop Bazaar (bzr) from making .moved files

开发者 https://www.devze.com 2022-12-27 20:36 出处:网络
Is there a way to tell 开发者_如何学Cbzr not to create .moved files? I\'ve tried the --overwrite option with a bzr pull, but it still creates the .moved files. I guess I can just make a clean-up scrip

Is there a way to tell 开发者_如何学Cbzr not to create .moved files? I've tried the --overwrite option with a bzr pull, but it still creates the .moved files. I guess I can just make a clean-up script, but I was just wondering if I am missing something.


You have conflicts in some filenames: either you have unversioned foo in your tree and you pull revision where foo becomes versioned, or you have added foo in two different branches independently and therefore each copy of foo got assigned different file-ids. So Bazaar tries to save your files there and avoid overwrite your existing files. In the first case you have harmless backup facility from bzr, and foo.moved can be deleted. But in the second case you have real conflict and you should at least inspect both foo and foo.moved and resolve conflict with bzr resolve foo, then delete foo.moved if needed.

So the strategy to avoid .moved files is pretty much depend on the reason why they are appear in your tree.

0

精彩评论

暂无评论...
验证码 换一张
取 消