made svn revision calculation also work with trunk...
...only git-svn (patch by ivan_i)
This commit is contained in:
parent
fda6587d7f
commit
226c9288c7
1 changed files with 4 additions and 1 deletions
|
@ -334,7 +334,10 @@ if not env['static_test']:
|
|||
|
||||
if os.path.exists('.git'):
|
||||
try:
|
||||
env["svnrev"] = Popen(Split("git-svn find-rev refs/remotes/trunk"), stdout=PIPE).communicate()[0].rstrip("\n")
|
||||
env["svnrev"] = Popen(Split("git-svn find-rev refs/remotes/trunk"), stdout=PIPE, stderr=PIPE).communicate()[0].rstrip("\n")
|
||||
if not env["svnrev"]:
|
||||
# If you use git-svn for one svn path only there's no refs/remotes/trunk, only git-svn branch
|
||||
env["svnrev"] = Popen(Split("git-svn find-rev git-svn"), stdout=PIPE, stderr=PIPE).communicate()[0].rstrip("\n")
|
||||
# if git-svn can't find HEAD it's a local commit
|
||||
if Popen(Split("git-svn find-rev HEAD"), stdout=PIPE).communicate()[0].rstrip("\n") == "":
|
||||
env["svnrev"] += "L"
|
||||
|
|
Loading…
Add table
Reference in a new issue