Commits

Anonymous committed 9fff2b8

add except for AttributeError if youngestrepo doesn't exist

It's possible for youngestrepo to not exist in the updatemeta (partial) path
if this is the first time svn updatemeta has been run. In that case
util.load_string will return None and the .strip() will fail.

Comments (0)

Files changed (1)

hgsubversion/svncommands.py

             if err.errno != errno.ENOENT:
                 raise
             ui.status('missing some metadata -- doing a full rebuild')
+        except AttributeError:
+            ui.status('no metadata available -- doing a full rebuild')
 
 
     lastpulled = open(os.path.join(svnmetadir, 'lastpulled'), 'wb')