6494: svn_revision module ignores translated SVN stdout value for "exported"
svn: r21547
This commit is contained in:
parent
bf67b3e114
commit
2828211c6a
@ -39,18 +39,12 @@ def get_svn_revision(path=""):
|
|||||||
except:
|
except:
|
||||||
return "" # subprocess failed
|
return "" # subprocess failed
|
||||||
# subprocess worked
|
# subprocess worked
|
||||||
if stdout: # has output
|
if stdout and len(stdout) > 0: # has output
|
||||||
stdout = cuni(stdout) # get a proper string
|
stdout = cuni(stdout) # get a proper string
|
||||||
if (" " in stdout) or (stdout == "exported"):
|
if stdout[0].isdigit():
|
||||||
# one of svnversion's 1.7 non-version responses:
|
|
||||||
# 'Unversioned directory'
|
|
||||||
# 'Unversioned file'
|
|
||||||
# 'Uncommitted local addition, copy or move'
|
|
||||||
# svnversion's 1.6 non-version response:
|
|
||||||
# 'exported'
|
|
||||||
return ""
|
|
||||||
else:
|
|
||||||
return "-r" + stdout
|
return "-r" + stdout
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
else: # no output from svnversion
|
else: # no output from svnversion
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user