是否可以仅通过URL来操作subversion属性,例如svn:externals
? (即,不需要一个工作副本。)
我想要一个脚本,可以给定subversion URL并将svn:externals
固定到特定的修订版本,但这似乎是不可能的:
$ svn propset foo bar https://example.com/svn/myproject/trunk
svn: Setting property on non-local target 'https://example.com/svn/myproject/trunk' needs a base revision
$ svn propset foo bar -r HEAD https://example.com/svn/myproject/trunk
svn: Try 'svn help' for more info
svn: Cannot specify revision for setting versioned property 'foo'
$ svn propset foo bar --revprop -r HEAD https://example.com/svn/myproject/trunk
svn: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
svn: At least one property change failed; repository is unchanged
svn: Error setting property 'foo':
could not remove a property
如果我使用实际的修订号而不是HEAD
,我会得到相同的结果。
-m
标志在命令行中指定消息,否则编辑器也会为消息调用。 - Gianluca P.