You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Philip Martin <ph...@codematters.co.uk> on 2005/09/09 17:12:15 UTC

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

Jon Bendtsen <Jo...@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