复制时忽略外部

use*_*061 5 svn

当我从源码复制到目的地时,我想忽略外部.我试过了

svn cp --ignore-externals sourcepath destpath
Run Code Online (Sandbox Code Playgroud)

但外部仍然存在.知道如何让这个工作吗?

我的源码结构如下:

trunk
   dir1 with sub dir ( need all of this)
   dir2 with sub dir ( each sub dir has a file with svn external prop set)
   dir3 with sub dir ( need all of this)
Run Code Online (Sandbox Code Playgroud)

我应该能够通过一个cp命令获得我想要的所有东西,除了我的分支中的外部.

谢谢.

Dia*_*cus 1

可能没有一个命令。svn:externals之后可能需要使用 删除属性svn propdel。另一种方法是复制文件夹中的所有文件,而不是复制文件夹。