Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[svn r2491] support unnormal SVN entries files

--HG--
branch : trunk
  • Loading branch information...
commit 4b31133e9e36b6ceec645678d1f6d935b1cba1df 1 parent ec8afec
scoder authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 versioninfo.py
View
5 versioninfo.py
@@ -34,7 +34,10 @@ def svn_version():
data = map(str.splitlines, data.split('\n\x0c\n'))
del data[0][0] # get rid of the '8'
dirurl = data[0][3]
- localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]])
+ try:
+ localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]])
+ except ValueError:
+ pass # may be some newly added directory
elif data.startswith('<?xml'):
# SVN <= 1.3
dirurl = urlre.search(data).group(1) # get repository URL
Please sign in to comment.
Something went wrong with that request. Please try again.