How to do a “svn copy without externals” ?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 10:01:39

问题


I have a branch A with externals

I need to copy the content (without the externals) to a tag B. How to proceed ?

I tried,

svn copy A B --ignore-externals 

It did not work. Please note that A and B are complete https paths.


回答1:


You are misunderstanding what --ignore-externals is for on the copy subcommand. This flag only affects working-copy operations. When you copy one working-copy path to another, it prevents svn from processing all the svn:externals properties on copied items to check out their targets. It does not prevent svn from copying the properties themselves; those get copied along with the folders they have been set on. Removing those properties would be a change to the copied objects, and svn does not change objects while it copies them.

You will either need to check out your tag, remove the externals, and commit; or, do the copy within your working copy, and edit to remove the externals prior to commit.



来源:https://stackoverflow.com/questions/28337224/how-to-do-a-svn-copy-without-externals

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!