Add the svn export option
This commit is contained in:
parent
13e9a0e212
commit
d68703454b
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue