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)
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()