我正在尝试使用svn:externals
自动检出另一个目录下的某个目录的副本。这是我的项目在存储库中的目录的示例:
trunk
releases
releases_1_4
database
conf
resources
etl_machines
workflows
然后,我想创建一个名为release_1_4_1
的别名,该别名是release_1_4
的副本,因此我向releases
添加了一个外部属性,如下所示:
$ svn propset svn:externals 'http://server/svn/repos/MAIN/releases/branches/2012-09-13_branch/releases/release_1_4@38320 release_1_4_1'
现在,如果我签入该属性更改,然后进行更新,我会收到如下所示的错误:
$ svn update
Updating '.':
Fetching external item into 'release_1_4_1':
A release_1_4_1/a_file
A release_1_4_1/database
A release_1_4_1/database/a.sql
A release_1_4_1/database/b.sql
A release_1_4_1/database/c.sql
A release_1_4_1/conf
A release_1_4_1/conf/prod.properties
A release_1_4_1/conf/dev.properties
A release_1_4_1/conf/test.properties
A release_1_4_1/resources
A release_1_4_1/resources/a
A release_1_4_1/resources/a/install.groovy
A release_1_4_1/etl_machines
A release_1_4_1/etl_machines/b
A release_1_4_1/etl_machines/b/start_services.groovy
A release_1_4_1/etl_machines/b/install.groovy
A release_1_4_1/workflows
A release_1_4_1/workflows/cm
A release_1_4_1/workflows/cm/install.groovy
Updated external to revision 38320.
svn: warning: W200000: Error handling externals definition for 'release_1_4_1/etl_machines':
svn: warning: W155010: The node '/home/user/wcs/trunk/releases/release_1_4_1/etl_machines' is not an external.
svn: warning: W200000: Error handling externals definition for 'release_1_4_1/workflows':
svn: warning: W155010: The node '/home/user/wcs/trunk/releases/release_1_4_1/workflows' is not an external.
svn: warning: W200000: Error handling externals definition for 'release_1_4_1/cm':
svn: warning: W155010: The node '/home/user/wcs/trunk/releases/release_1_4_1/cm' is not an external.
svn: warning: W200000: Error handling externals definition for 'release_1_4_1/database':
svn: warning: W155010: The node '/home/user/wcs/trunk/releases/release_1_4_1/database' is not an external.
svn: warning: W200000: Error handling externals definition for 'release_1_4_1/conf':
svn: warning: W155010: The node '/home/user/wcs/trunk/releases/release_1_4_1/conf' is not an external.
svn: warning: W200000: Error handling externals definition for 'release_1_4_1/resources':
svn: warning: W155010: The node '/home/user/wcs/trunk/releases/release_1_4_1/resources' is not an external.
At revision 43894.
svn: E205011: Failure occurred processing one or more externals definitions
知道我在这里做错了吗? (svn版本1.8.1)
答案 0 :(得分:2)
我正在解决相同的问题(2年后;-))您是否创建并提交了文件夹" release_1_4_1"更新前?如果是这样,那么您所面临的错误就会出现。但是,无论如何都应该更新源。
似乎解决方案是删除和取消" release_1_4_1"文件夹 - 如果已创建 - 并重新创建外部。
答案 1 :(得分:1)
对我来说,删除工作副本并执行新的结帐就足够了。