Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: scm.py

Issue 9110010: Fix compatibility with svn 1.7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scm.py
diff --git a/scm.py b/scm.py
index da094fb596825f738e58a985f5c197e609151559..0f31d1c4bffb300e017a485ff793fa5a5a0a14a8 100644
--- a/scm.py
+++ b/scm.py
@@ -578,7 +578,11 @@ class SVN(object):
# Use .text when the item is not optional.
result['Path'] = entry.attrib['path']
- result['Revision'] = int(entry.attrib['revision'])
+ rev = entry.attrib['revision']
+ try:
+ result['Revision'] = int(rev)
+ except ValueError:
+ result['Revision'] = None
result['Node Kind'] = entry.attrib['kind']
# Differs across versions.
if result['Node Kind'] == 'dir':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698