svn - High level API for the Subversion version control tool
A Python API for the Subversion version control tool.
A lazy, ahem, agile person’s answer to the official svn bindings.
svn - Wrapper for the svn client tool
Subversion client wrapper.
Only supports versions 1.6, 1.7 and 1.8, others might work but have not been
tested.
Requires at least Python 2.6.
-
class Info(out)[source]
Represents the output of the svn info command in a structured way.
-
__init__(out)[source]
-
__str__()[source]
-
class Parser(command, arguments, options, **defaults)[source]
Allows passing nxpy.svn.url.Url instances as arguments to Svn‘s methods.
-
__init__(command, arguments, options, **defaults)[source]
-
class Svn(debug=None)[source]
The actual wrapper.
-
__init__(debug=None)[source]
-
cat(*targets, **options)[source]
-
checkout(src, dest, debug=None, **options)[source]
-
commit(src, debug=None, **options)[source]
-
copy(src, dest, debug=None, **options)[source]
-
delete(*targets, **options)[source]
-
diff(*targets, **options)[source]
-
getexternals(d)[source]
-
import_(src, dest, debug=None, **options)[source]
-
info(*targets)[source]
-
list(*targets)[source]
-
mkdir(*targets, **options)[source]
-
propget(name, *targets)[source]
-
propset(name, *targets, **options)[source]
-
setexternals(externals, d, username='', password='')[source]
-
status(*targets, **options)[source]
-
update(*targets, **options)[source]
-
version()[source]
svnadmin - Wrapper for the svnadmin administration tool
Subversion administration tool wrapper.
-
class SvnAdmin(debug=None)[source]
-
__init__(debug=None)[source]
-
create(path, debug=None)[source]
url - Models a URL adhering to the trunk/tags/branches convention
Subversion URL manipulation.
-
exception BadUrlError[source]
Indicates a malformed URL.
-
class Url(path)[source]
A well-formed Subversion repository URL that follows standard svn conventions.
The URL must end in either ‘trunk’, ‘tags/label’ or ‘branches/label’.
-
__eq__(other)[source]
-
__init__(path)[source]
-
__ne__(other)[source]
-
__str__()[source]
-
getbranch(branch)[source]
-
gettag(tag)[source]
-
gettrunk()[source]
-
isbranch(branch=None)[source]
-
istag(tag=None)[source]
-
istrunk()[source]
wcopy - Models a working copy
Working copy manipulation.
-
exception ModifiedError[source]
Raised when attempting to tag or branch a working copy that contains changes.
-
exception NotOnBranchError[source]
Raised when attempting to delete a working copy that is not on the requested branch.
-
exception NotOnTagError[source]
Raised when attempting to delete a working copy that is not on the requested tag.
-
class Wcopy(dir_, url=None, username='', password='')[source]
A working copy obtained by checking out a Url.
-
__init__(dir_, url=None, username='', password='')[source]
Initialize attributes.
If url is not None, perform a checkout, otherwise check that dir_ points to a valid
working copy.
-
__str__()[source]
-
branch(label)[source]
-
commit()[source]
-
delete_branch(label)[source]
-
delete_tag(label)[source]
-
getexternals()[source]
-
setexternals(ext)[source]
-
tag(label)[source]
-
update(ignore_externals=False)[source]