示例#1
0
 def checkout(self):
     if isdir(self.wc):
         shutil.rmtree(self.wc)
     self.svn.checkout(self.uri, self.wc)
     self.dot()
     if not self.keep:
         try_remove_dir_atexit(self.wc)
示例#2
0
文件: __init__.py 项目: tpn/enversion
 def checkout(self):
     if isdir(self.wc):
         shutil.rmtree(self.wc)
     self.svn.checkout(self.uri, self.wc)
     self.dot()
     if not self.keep:
         try_remove_dir_atexit(self.wc)
示例#3
0
 def create(self, **kwds):
     if isdir(self.path):
         shutil.rmtree(self.path)
     self.evnadmin.create(self.name, **kwds)
     self.dot()
     if not self.keep:
         try_remove_dir_atexit(self.path)
     self.reload_conf()
示例#4
0
文件: __init__.py 项目: tpn/enversion
 def create(self, **kwds):
     if isdir(self.path):
         shutil.rmtree(self.path)
     self.evnadmin.create(self.name, **kwds)
     self.dot()
     if not self.keep:
         try_remove_dir_atexit(self.path)
     self.reload_conf()