You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by cm...@collab.net on 2002/08/08 18:17:55 UTC

Re: why not a default URL for svn ls?

"Hamilton Link" <he...@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