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

Re: [hook-script] new pre-commit script to add bugzilla urls to log messages

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-09-09 19:12:15 CEST

Jon Bendtsen <Jon.Bendtsen@laerdal.dk> writes:

> Den 9. sep 2005 kl. 17:24 skrev Philip Martin:
>
>> #!/usr/bin/python
>> import sys
>> sys.path.append('/usr/local/subversion/lib/svn-python')
>> from svn import repos, fs
>> repos_handle = repos.open(sys.argv[1])
>> fs_handle = repos.fs(repos_handle)
>> txn_handle = fs.open_txn(fs_handle, sys.argv[2])
>> log_msg = fs.txn_proplist(txn_handle)['svn:log']
>> log_msg = log_msg + ' modified' # do the fancy bug URL stuff here
>> fs.change_txn_prop(txn_handle, 'svn:log', log_msg)
>
> Why are these language bindings not documented on the web?

I don't know, perhaps nobody has created any such documentation, I
don't really use the bindings myself. The bindings are still being
developed and tend to lag behind the C API, you may need to use
Subversion 1.3 for that script to work.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 9 19:14:00 2005

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

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