Lines Matching refs:directory
24 def FetchSVNRevision(directory, svn_url_regex):
26 Fetch the Subversion branch and revision for a given directory.
37 cwd=directory,
66 def RunGitCommand(directory, command):
86 cwd=directory,
93 def FetchGitRevision(directory):
95 Fetch the Git hash for a given directory.
102 proc = RunGitCommand(directory, ['rev-parse', 'HEAD'])
110 def FetchGitSVNURLAndRevision(directory, svn_url_regex):
119 proc = RunGitCommand(directory, ['log', '-1',
139 def FetchGitSVNRevision(directory, svn_url_regex):
145 url, revision = FetchGitSVNURLAndRevision(directory, svn_url_regex)
151 def FetchVersionInfo(default_lastchange, directory=None,
160 version_info = (FetchSVNRevision(directory, svn_url_regex) or
161 FetchGitSVNRevision(directory, svn_url_regex) or
162 FetchGitRevision(directory))
200 help="use repository in the given directory")