tags:

views:

127

answers:

3

I am working with multiply repositories.
Is it possible to create an alias for repositories. So I can use them instead of raw urls?

Namely instead of:

svn ls https://mysvnrepos.abs/trunk

I could use:

svn ls myrepo
+1  A: 

Not sure, but maybe externals is what you're after.

Mr Shunz
+5  A: 

If you use Linux or Mac OS, you can define a global variable for your shell.

export myrepo="https://mysvnrepos.abs/trunk"

Then you can call

svn ls $myrepo

If you want to keep this variable, add the line above to your ~/.bashrc file (create it, if it does not exist).

muffix
+2  A: 

No, I don't believe there is. In a standard Subversion workflow, it's quite rare to need to type the full URL -- most operations are on an already-checked-out working copy -- and in any case, if you're working with branches and tags, the URL would change between invocations.

That's not to say that the idea isn't any use, just that it's not useful enough for the developers to have added it.

If, like me, you have difficulty remembering what the URL was for a working copy you want to work with, svn info will give it to you.

Andrew Aylett