Permalink
Browse files

[svn r2491] support unnormal SVN entries files

--HG--
branch : trunk
  • Loading branch information...
scoder
scoder committed Jun 20, 2007
1 parent ec8afec commit 4b31133e9e36b6ceec645678d1f6d935b1cba1df
Showing with 4 additions and 1 deletion.
  1. +4 −1 versioninfo.py
View
@@ -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

0 comments on commit 4b31133

Please sign in to comment.