def create_standard_repo_symlinks(path):
    basic_env = git_meld_index.BasicEnv()
    basic_env.cmd(["mkdir", "-p", path])
    env = git_meld_index.PrefixCmdEnv(git_meld_index.in_dir(path), basic_env)
    repo = Repo(env,
                make_file_cmd=write_translated_symlink_cmd,
                change_file_cmd=write_translated_symlink_cmd)
    do_standard_repo_changes(repo)
 def make_env(self):
     if self.print_commands:
         basic = git_meld_index.VerboseWrapper.make_readable(
             git_meld_index.BasicEnv.make_readable())
     else:
         basic = git_meld_index.BasicEnv.make_readable()
     return git_meld_index.PrefixCmdEnv.make_readable(
         git_meld_index.in_dir(self.make_temp_dir()), basic)
Exemplo n.º 3
0
def create_standard_repo_symlinks(path):
    basic_env = git_meld_index.BasicEnv()
    basic_env.cmd(["mkdir", "-p", path])
    env = git_meld_index.PrefixCmdEnv(git_meld_index.in_dir(path), basic_env)
    repo = Repo(env, make_file_cmd=write_translated_symlink_cmd, change_file_cmd=write_translated_symlink_cmd)
    do_standard_repo_changes(repo)
Exemplo n.º 4
0
def create_standard_repo(path, prefix=""):
    basic_env = git_meld_index.BasicEnv()
    basic_env.cmd(["mkdir", "-p", path])
    env = git_meld_index.PrefixCmdEnv(git_meld_index.in_dir(path), basic_env)
    make_standard_repo(env, prefix)
Exemplo n.º 5
0
 def make_env(self):
     if self.print_commands:
         basic = git_meld_index.VerboseWrapper.make_readable(git_meld_index.BasicEnv.make_readable())
     else:
         basic = git_meld_index.BasicEnv.make_readable()
     return git_meld_index.PrefixCmdEnv.make_readable(git_meld_index.in_dir(self.make_temp_dir()), basic)
def create_standard_repo(path, prefix=""):
    basic_env = git_meld_index.BasicEnv()
    basic_env.cmd(["mkdir", "-p", path])
    env = git_meld_index.PrefixCmdEnv(git_meld_index.in_dir(path), basic_env)
    make_standard_repo(env, prefix)