Skip to content
forked from leafvmaple/pysvn

A lightweight python wrapper of the Subversion cli interface.

License

Notifications You must be signed in to change notification settings

ryanbender2/pysvn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A lightweight python wrapper of the Subversion cli interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 51.4%
  • Python 48.6%