Re: [hook-script] new pre-commit script to add bugzilla urls to log messages
Philip Martin <[email protected]> Fri, 09 Sep 2005 18:12:15 +0100
| Newsgroups | gmane.comp.version-control.subversion.devel,gmane.mail.eyebrowse.user |
|---|---|
| Message-ID | <[email protected]> |
Jon Bendtsen <[email protected]> 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