tags:

views:

35

answers:

2

I am trying to change "svn:externals" property of a remote repository via this command:

svn ps svn:externals "vendor1 http://vendor_repo_here.com" http://main-repo-here.com

I am expecting above command to change the "svn:externals" property from whatever it is to "vendor1 http://vendor_repo_here.com".. But it throws an error:

Setting property on non-local target 'http://main-repo-here.com' needs a base revision.

So I try this:

svn ps -r HEAD svn:externals "vendor1 http://vendor_repo_here.com" http://main-repo-here.com

Now it says:

Cannot specify revision for versioned property 'svn:externals'

Am I doing something wrong? Is there anyway to change this remotely via command line?

+1  A: 

from the help of svn propset:

propset (pset, ps): Set the value of a property on files, dirs, or revisions. usage: 1. propset PROPNAME PROPVAL PATH... 2. propset PROPNAME --revprop -r REV PROPVAL [TARGET]

  1. Changes a versioned file or directory property in a working copy.
  2. Changes an unversioned property on a repository revision. (TARGET only determines which repository to access.)

svn:externals is a versioned property, which cannot be changed in such way.

Adrian Shum
I'm not sure how TortoiseSVN does it directly from "Repo browser" then, as Si suggested.
Abhimanyu Grover
+1  A: 

It's possible to change svn:externals remotely using TortoiseSVN:

TortoiseSVN > Repo-Browser > (select svn:externals dir) > Show Properties > Edit

That works for me.

It would be interesting to know why TortoiseSVN is able to yet svn cannot.

Si
That's good info.. I'm aware about this. But can't it be done from command line?
Abhimanyu Grover
The documentation Adrian supplied indicates it's not possible, so your best bet might be to email either subversion or TortoiseSVN mailing lists for a rationale as to why one client (presumably using the same API/library) can do this whereas another cannot. You might get lucky on SO and find someone with deeper knowledge, I know Stefan (TortoiseSVN lead dev) was on SO a while ago, but pot luck really!
Si