Brad Hall  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.

  • Participants
  • Parent commits adf4a08

Comments (0)

Files changed (1)

File hgsubversion/

             if err.errno != errno.ENOENT:
             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')