]> asedeno.scripts.mit.edu Git - git-svn-keywords.git/commitdiff
Examine multiple potential unhandled.log locations
authorAlejandro R. Sedeño <asedeno@mit.edu>
Tue, 9 Feb 2010 16:00:23 +0000 (11:00 -0500)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Tue, 9 Feb 2010 16:00:23 +0000 (11:00 -0500)
git-svn-keywords.py

index bf8191c68607dc58d91bf3282f8f403be1dd90c4..05ff7584b25e67ebf8e21f1d8993b27800e362ee 100755 (executable)
@@ -111,8 +111,12 @@ def parse_svn_unhandled(g):
         if CONFIG.has_option('core', 'lastrev'):
             lastrev = CONFIG.getint('core', 'lastrev')
 
-    with open(g.path + '/svn/refs/remotes/git-svn/unhandled.log', 'r') as f:
-        _do_parse_unhandled(f, lastrev=lastrev)
+    try:
+        with open(g.path + '/svn/refs/remotes/git-svn/unhandled.log', 'r') as f:
+            _do_parse_unhandled(f, lastrev=lastrev)
+    except IOError:
+        with open(g.path + '/svn/git-svn/unhandled.log', 'r') as f:
+            _do_parse_unhandled(f, lastrev=lastrev)
 
     with open(FILES_PATH, 'wb') as f:
         FILES.write(f)