Ejemplo n.º 1
0
    def _create_repository_files(self):

        path = self.repo_path

        if not os.path.exists(path):
            os.makedirs(path)
        path = os.path.abspath(path)

        subssh.check_call((config.SVNADMIN_BIN, "create", path))
        subssh.check_call((
                          config.SVN_BIN, "-m", "automatically created project base",
                          "mkdir", "file://%s" % os.path.join(path, "trunk"),
                                   "file://%s" % os.path.join(path, "tags"),
                                   "file://%s" % os.path.join(path, "branches"),
                          ))
Ejemplo n.º 2
0
 def _create_repository_files(self):
     os.chdir(self.repo_path)
     subssh.check_call((config.GIT_BIN, "--bare", "init"))