aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-02-16 22:15:45 +0100
committerPapoteur <papoteur@mageialinux-online.org>2016-02-16 22:15:45 +0100
commit94cee97329335a0618523b8d7ea5d931383db7c2 (patch)
treef16f39c377ece31baccf0910d280c7d347a6214e /MgaRepo
parent7db6e1f0fcfcd94ee1b89c6e1dedb860fcfd7e48 (diff)
downloadmgarepo-94cee97329335a0618523b8d7ea5d931383db7c2.tar
mgarepo-94cee97329335a0618523b8d7ea5d931383db7c2.tar.gz
mgarepo-94cee97329335a0618523b8d7ea5d931383db7c2.tar.bz2
mgarepo-94cee97329335a0618523b8d7ea5d931383db7c2.tar.xz
mgarepo-94cee97329335a0618523b8d7ea5d931383db7c2.zip
add mv function in svn.py, used by obsolete command
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/svn.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py
index 513c79a..cbc4c8d 100644
--- a/MgaRepo/svn.py
+++ b/MgaRepo/svn.py
@@ -384,6 +384,15 @@ class SVN:
log.reverse()
return log
+ def mv(self, path, dest, message=None, **kwargs):
+ cmd = ["mv", path, dest, ]
+ if message:
+ cmd.append("-m '%s'"%message)
+ print(cmd)
+ sys.exit()
+ self._add_log(cmd, kwargs)
+ return self._execsvn_success(*cmd, **kwargs)
+
class SVNLook:
def __init__(self, repospath, txn=None, rev=None):
self.repospath = repospath