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