Lines Matching refs:cwd
41 return SVN(cwd=path)
44 return Git(cwd=path)
85 def __init__(self, cwd, dryrun=False): argument
86 self.cwd = cwd
87 self.checkout_root = self.find_checkout_root(self.cwd)
91 def run_command(args, cwd=None, input=None, raise_on_failure=True, return_exit_code=False): argument
93 process = subprocess.Popen(args, stdout=subprocess.PIPE, stdin=stdin, cwd=cwd)
97 raise ScriptError('Failed to run "%s" exit_code: %d cwd: %s' % (args, exit_code, cwd))
206 def __init__(self, cwd, dryrun=False): argument
207 SCM.__init__(self, cwd, dryrun)
287 def __init__(self, cwd, dryrun=False): argument
288 SCM.__init__(self, cwd, dryrun)
292 return cls.run_command(['git', 'rev-parse', '--is-inside-work-tree'], cwd=path) == "true"
297 …eckout_root, dot_git) = os.path.split(cls.run_command(['git', 'rev-parse', '--git-dir'], cwd=path))