如何在没有外部的情况下进行"svn复制"? ? [英] How to do a "svn copy without externals" ?

查看:93
本文介绍了如何在没有外部的情况下进行"svn复制"? ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的分支机构A具有外部条件

I have a branch A with externals

我需要将内容(没有外部内容)复制到标签B.如何继续?

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

我尝试过

svn copy A B --ignore-externals 

它没有用. 请注意,A和B是完整的https路径.

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

推荐答案

您误解了--ignore-externals在copy子命令上的用途.该标志仅影响工作复制操作.当您将一个工作副本路径复制到另一路径时,它会阻止svn处理已复制项目上的所有svn:externals属性,以检出其目标.它不会阻止svn复制属性本身.这些文件将与设置它们的文件夹一起复制.删除这些属性将是对复制对象的更改,并且svn在复制对象时不会更改对象.

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.

这篇关于如何在没有外部的情况下进行"svn复制"? ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆