[Tutor] How do to an svn checkout using the svn module?
Kent Johnson
kent37 at tds.net
Fri Mar 9 12:39:07 CET 2007
Stephen Nelson-Smith wrote:
> Hello,
>
> I want to do a simple svn checkout using the python svn module. I
> haven't been able to find any/much/basic documentation that discusses
> such client operations.
Did you find the pysvn Programmer's Guide that comes with pysvn? It has
this example:
import pysvn
client = pysvn.Client()
#check out the current version of the pysvn project
client.checkout('http://localhost/example/trunk',
'./examples/pysvn')
#check out revision 11 of the pysvn project
client.checkout('http://localhost/example/trunk',
'./examples/pysvn-11',
revision=pysvn.Revision(pysvn.opt_revision_kind.number, 11))
Kent
More information about the Tutor
mailing list