Hello,
I've wasted far too much time attempting to discern the correct syntax
for setting svn:externals properties, *pinned with explicit revision
numbers*, via the Windows command line.
While I realize that this question is not TSVN-specific, I am hoping the
TSVN developers can provide some insight, because clearly, this very
capability has been implemented in TSVN.
I am trying to emulate TSVN's svn:externals property editor, which
yields the following property string:
-r 661 ^/../framework/trunk/database database
I am using the following command (all on one line):
svn propset svn:externals "-r661 ^/../framework/trunk/database database" .
This yields the following error message:
svn: E205000: Syntax error in revision argument '661
^/../framework/trunk/database database'
I have also tried placing a space between "-r" and "661", even though
the output from "svn help propset" does not use a space in the example
(it uses "-r25"; see last line in below paragraph):
svn:externals - A newline separated list of module specifiers,
each of which consists of a URL and a relative directory path,
similar to the syntax of the 'svn checkout' command:
http://example.com/repos/zig foo/bar
A revision to check out can optionally be specified to pin the
external to a known revision:
-r25
http://example.com/repos/zig foo/bar
Adding the space yields the same error, but with a space before "661" in
the message:
svn: E205000: Syntax error in revision argument ' 661
^/../framework/trunk/database database'
The problem seems to be related to how Windows handles the minus sign in
the "-r661" portion of the string. If I escape the minus sign with a
backslash, the command succeeds, but of course, the backslash appears,
literally, in the svn:externals property value.
I've scoured the Web looking for examples of how this is done on the
Windows command line with SVN 1.7, and I can't find a single example.
Any help is greatly appreciated!
-Ben
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3032135
To unsubscribe from this discussion, e-mail: [
users-un...@tortoisesvn.tigris.org].