Skip to content

Commit

Permalink
added svn remove command for local client, and added a small section …
Browse files Browse the repository at this point in the history
…about username/password authentication to the Readme
  • Loading branch information
scmtestadf committed Jan 25, 2017
1 parent 09ddbda commit f853865
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions svn/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ def add(self, rel_path):
[rel_path],
wd=self.path)

def remove(self, rel_path):
self.run_command(
'remove',
[rel_path],
wd=self.path)

def commit(self, message, rel_filepaths=[]):
args = ['-m', message] + rel_filepaths

Expand Down
11 changes: 11 additions & 0 deletions svn/resources/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Functions currently implemented:
- diff_summary
- status
- add
- remove
- commit
- update

Expand Down Expand Up @@ -279,6 +280,16 @@ diff(start_revision, end_revision)

Finds all the diff between start and end revision id. Here another key of 'diff' is added which shows the diff of files.

using authentication credentials
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you need to supply a username and password, you can do so when creating the repository. ::

import svn.local

l = svn.local.LocalClient('https://github.com/dsoprea/PySvn.git', username='yourusername', password='yourpassword')


.. |donate| image:: https://pledgie.com/campaigns/31718.png?skin_name=chrome
:alt: Click here to lend your support to: PySvn and make a donation at pledgie.com !
:target: https://pledgie.com/campaigns/31718
Expand Down

0 comments on commit f853865

Please sign in to comment.