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

URL of WC item (was: rapidsvn feedback)

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-08-02 02:35:11 CEST

On Thu, Aug 01, 2002 at 09:20:08AM -0500, cmpilato@collab.net wrote:
>...
> > It is not only about typing, it is also about remembering that damn
> > URL. I always need to grep the svn/INSTALL file when I need the URL
> > because I can't remember it =8)
>
> All I gotsta say is:
>
> THE_URL=`svn info working_copy_dir | grep Url: | cut -c 6-`
>
> :-) I use this *all the time*.

Bleh. That is the simpleton's mechanism. With the He-Man SWIG Checkin that I
just did, you can use the following:

#!/usr/bin/env python2
import svn._wc, svn.util
svn.util.apr_initialize()
pool = svn.util.svn_pool_create(None)
entry = svn._wc.svn_wc_entry('working_copy_dir', 0, pool)
print svn._wc.svn_wc_entry_t_url_get(entry)

hehe...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 2 02:32:28 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.