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

Re: svn propset from stdin

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-22 00:08:22 CEST

On Mon, Oct 21, 2002 at 03:59:37PM -0400, Brandon Ehle wrote:
>...
> Is this something that could be done with the python swig bindings as well?

I just did the following:

$ cd ~/src/svn
$ python2
Python 2.2 (#1, Jan 10 2002, 22:50:25)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import _client, util
>>> util.apr_initialize()
0
>>> p = util.svn_pool_create(None)
>>> _client.svn_client_propset('myprop', 'myvalue', 'HACKING', 0, p)
>>>
$ svn pl -v HACKING
Properties on 'HACKING':
  myprop : myvalue
  svn:keywords : date
$

So yes... it can certanly be done with the SWIG bindings, and quite easily,
I might add :-)

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 Tue Oct 22 00:08:37 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.