SVN command-line client wrapper.
Explore the docs
Report Bug
---
Request Feature
Table of Contents
This client supports the major operations of the svn command-line client. Please put in a feature request if you would like more operations to be added!
Installers are available on Pypi
.
python -m pip install --upgrade pysubversion
initialize the client on
cwd
import pysvn
svn = pysvn.Client()
Revert a given path + options...
svn.revert('foo.txt')
svn.revert('foo/', recursive=True)
svn.revert('foo.txt', remove_added=True)
Show the log messages for a set of revision(s) and/or path(s)..
svn.log()
svn.log(revision=12)
svn.log(revision='1:3')
svn.log(file='foo.txt', revision=Revision.HEAD)
Display local changes or differences between two revisions or paths
svn.diff(1)
svn.diff(3, 4)
Bring changes from the repository into the working copy.
svn.update()
svn.update(path='foo.txt')
svn.update(path=['foo.txt', 'bar.c'])
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the BSD 3-Clause License. See LICENSE.txt
for more information.
Ryan Bender - @itsmeryan.hihello - ryan.bender@cfacorp.com
Project Link: https://github.com/ryanbender2/pysvn