Add the svn export option

This commit is contained in:
Mark de Wever 2008-02-16 19:24:53 +00:00
parent 13e9a0e212
commit d68703454b

View file

@ -125,6 +125,24 @@ class SVN:
logging.debug("update output:" + out)
return True
"""Export the current SVN root.
target Directory to export to, shouldn't exist yet.
returns True no error, False erro.
"""
def export(self, target):
logging.debug("export to '%s'", target)
command = ["svn", "export", self.checkout_path, target]
# execute
out, err = self.__execute(command)
return (err == "")
"""Add an item to the repo.
The item can either be a file or directory, if the item is already added