简体   繁体   中英

How to do a “svn copy without externals” ?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM