if CONFIG.has_option('core', 'lastrev'):
lastrev = CONFIG.getint('core', '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)
+ for remote in ['svn', 'svn/refs/remotes']:
+ base = os.path.join(g.path,remote)
+ for d in os.listdir(base):
+ if os.path.isdir(os.path.join(base,d)):
+ unhandled = os.path.join(base,d,'unhandled.log')
+ if os.path.isfile(unhandled):
+ with open(unhandled, 'r') as f:
+ _do_parse_unhandled(f, lastrev=lastrev)
with open(FILES_PATH, 'wb') as f:
FILES.write(f)