From f8538650bcf7cd69ab307a58f10777f0ee621cf1 Mon Sep 17 00:00:00 2001 From: Hans van Schoot Date: Mon, 23 Jan 2017 10:12:34 +0100 Subject: [PATCH] added svn remove command for local client, and added a small section about username/password authentication to the Readme --- svn/local.py | 6 ++++++ svn/resources/README.rst | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/svn/local.py b/svn/local.py index 2037ddb..f18dde6 100644 --- a/svn/local.py +++ b/svn/local.py @@ -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 diff --git a/svn/resources/README.rst b/svn/resources/README.rst index c4aff4c..926c53d 100644 --- a/svn/resources/README.rst +++ b/svn/resources/README.rst @@ -24,6 +24,7 @@ Functions currently implemented: - diff_summary - status - add +- remove - commit - update @@ -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