Svn Clients

Latest version

Released:

Intuitive Subversion wrapper.

Project description

The Apache HTTP Server is a “ heavy-duty ” network server that Subversion can leverage. Via a custom module, httpd makes Subversion repositories available to clients via the WebDAV/DeltaV 55 protocol, which is an extension to HTTP 1.1.

If you use Subversion (or plan to), you may want to provide your users the option to work with Subversion over the web. WebClient for SVN, one of several free Subversion tools from Polarion Software, is a handy SVN client that enables Subversion users to work with SVN repositories using a web browser. Svn commit: p4 submit: Open files in a client workspace to add them to the depot. Svn add, then svn commit: p4 add, then p4 submit: Remove a file. Svn delete p4 delete Obtain list of files in a repository. Svn list: p4 files: Compare files on the client workspace with revisions in the depot. Svn diff p4 diff.

svn is a simple Subversion library for Python. I wrote it so that there couldbe a lightweight and accessible library that was also available on PyPI. It iscompatible with both Python 2.7 and 3.3+.

The library wraps the svn commandline client, which should consequently beinstalled on the local system.

Functions currently implemented:

  • list
  • info
  • log
  • checkout
  • export
  • cat
  • diff
  • diff_summary
  • status
  • add
  • commit
  • update
  • cleanup

In addition, there is also an 'admin' class (svn.admin.Admin) that provides acreate method with which to create repositories.

You are more than welcome to submit pull-requests to add more support foradditional subcommands.

Usage is divided between two clients that either allow for access to a localworking-directory or a remote repository.

Both clients inherit a common set of methods that work with both local working-directories and remote repositories.

svn.utility.get_client is provided for convenience. If you provide a locationthat starts with a backslash, it will return a LocalClient instance. Otherwise,it will return a RemoteClient instance.

You may pass username and password as optional arguments to both theconstructor and utility function.

LocalClient

LocalClient allows access to a local working copy.

RemoteClient

RemoteClient allows access to a remote repository.

SvnException

SvnException is raised whenever there is an issue with the svn repository. Weare no longer supporting catching ValueError.

checkout(path)

Checkout a remote repository:

Common Functionality

These methods are available on both clients.

info(rel_path=None)

Get information about the directory.

NOTE: The keys named with dashes, slashes, and hashes are consideredobsolete, and only available for backwards compatibility. Wehave since moved to using only underscores to separate words.

cat(rel_filepath)

Get file-data as string.

log_default(timestamp_from_dt=None, timestamp_to_dt=None, limit=None, rel_filepath=', stop_on_copy=False, revision_from=None, revision_to=None, changelist=False)

Windows Svn Clients

Perform a log-listing that can be bounded by time or revision number and/ortake a maximum-count.

export(to_path, revision=None, force=False)

Checkout the tree without embedding an meta-information.

We can also use force option to force the svn export.

list(extended=False, rel_path=None)

Return either a flat-list of filenames or a list of objects describing evenmore information about each.

list_recursive(rel_path=None, yield_dirs=False, path_filter_cb=None)

List all entries at and beneath the root or given relative-path.

diff_summary(start_revision, end_revision)

A lower-level diff summary that doesn't actually provide the contentdifferences.

diff(start_revision, end_revision)

Svn

Diffs between start and end revisions

There was a previous contribution to the diff implementation that has beenreported and confirmed to often throw an exception due to shoddy handling ofthe file-paths in the output. It also made secondary shell calls and mixed bothtext and XML output in the response. As a result of this, the decision has beenmade to just reimplement it and reshape the output in a backwards-incompatibleway at the same time. If you need to stick to the older implementation, tie yourdependencies to the 0.3.46 release.

Release historyRelease notifications | RSS feed

1.0.1

1.0.0

0.3.46

0.3.45

0.3.44

0.3.43

0.3.42

0.3.41

0.3.40

0.3.39

0.3.38

0.3.37

0.3.36

0.3.35

0.3.34

0.3.33

0.3.32

0.3.31

0.3.30

0.3.29

0.3.28

0.3.27

0.3.26

0.3.25

0.3.24

0.3.23

0.3.22

0.3.21

0.3.20

0.3.19

0.3.18

0.3.17

0.3.16

0.3.15

0.3.14

0.3.13

0.3.12

0.3.11

0.3.10

0.3.7

0.3.6

0.3.5

0.3.4

0.3.3

0.1.0dev pre-release

0.3.3-dirty

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for svn, version 1.0.1
Filename, sizeFile typePython versionUpload dateHashes
Filename, size svn-1.0.1.tar.gz (12.8 kB) File type Source Python version None Upload dateHashes
Close

Svn Client Mac Os

Hashes for svn-1.0.1.tar.gz

Hashes for svn-1.0.1.tar.gz
AlgorithmHash digest
SHA25655f81f07853cc1d66d4800b0cfe2d3376ff02361a2b2361459dc22a0fab95247
MD5b88e1d57f14f027a58ce08f26ebf7f55
BLAKE2-2562ba5a23ed647d0cbdac48de23d822581e273f087364c57e2cd1c3efc979e91f5