Changes for 1.6 svn

svn: r21118
This commit is contained in:
Doug Blank 2013-01-14 18:40:17 +00:00
parent ee7ef78f6d
commit 5824a674d6

View File

@ -41,10 +41,13 @@ def get_svn_revision(path=""):
# subprocess worked # subprocess worked
if stdout: # has output if stdout: # has output
stdout = cuni(stdout) # get a proper string stdout = cuni(stdout) # get a proper string
if " " in stdout: # one of svnversion's non-version responses: if (" " in stdout) or (stdout == "exported"):
# one of svnversion's 1.7 non-version responses:
# 'Unversioned directory' # 'Unversioned directory'
# 'Unversioned file' # 'Unversioned file'
# 'Uncommitted local addition, copy or move' # 'Uncommitted local addition, copy or move'
# svnversion's 1.6 non-version response:
# 'exported'
return "" return ""
else: else:
return "-r" + stdout return "-r" + stdout