Skip to main content

Svn for python.

Project description

Contributors Forks Stargazers Issues MIT License LinkedIn


PySubversion

SVN command-line client wrapper.
Explore the docs

Report Bug --- Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

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!

(back to top)

Built With

(back to top)

Getting Started

Installers are available on Pypi.

python -m pip install --upgrade pysubversion

(back to top)

Usage

initialize the client on cwd

import pysvn

svn = pysvn.Client()

revert

Revert a given path + options...

svn.revert('foo.txt')
svn.revert('foo/', recursive=True)
svn.revert('foo.txt', remove_added=True)

log

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)

diff

Display local changes or differences between two revisions or paths

svn.diff(1)
svn.diff(3, 4)

update

Bring changes from the repository into the working copy.

svn.update()
svn.update(path='foo.txt')
svn.update(path=['foo.txt', 'bar.c'])

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the BSD 3-Clause License. See LICENSE.txt for more information.

(back to top)

Contact

Ryan Bender - @itsmeryan.hihello - ryan.bender@cfacorp.com

Project Link: https://github.com/ryanbender2/pysvn

(back to top)

Acknowledgments

(back to top)

Project details


Download files

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

Source Distribution

pysubversion-1.0.1.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

pysubversion-1.0.1-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page