[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: why not a default URL for svn ls?

From: <cmpilato_at_collab.net>
Date: 2002-08-08 20:17:55 CEST

"Hamilton Link" <helink@sandia.gov> writes:

> I have a question, or maybe a feature request.
>
> When I run "svn ls" in a subversion directory, is there a reason it
> can't figure out that I want the URL to be the one corresponding to the
> local directory? It's a pain to have to type "svn ls
> http://svn.collab.net/repos/svn/trunk/build" when I'm sitting in my
> checked out copy of svn in the build directory.
>
> Honestly, if I'm basically anywhere I should be able to say "svn ls
> ~/work/svn/build" and have it DWIM if it's in some repository's working
> copy. As someone pointed out on this list, it's pretty unambiguous when
> something is an URL and when it's a path to a file that either is or
> isn't a svn file.

There was a whole thread of discussion about this about a week ago or
so. I don't know if anything was actually fleshed out, but in the
meantime, if you are in Unixland, you can use:

   svn ls `svn info path_to_wc_thing | grep 'Url:' | cut -c 6-`

There was talk of just making an 'svn url' subcommand that would
shortcut that to just:

   svn ls `svn url path_to_wc_thing`

But again, I don't recall any resolution.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 8 20:47:43 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.