# HG changeset patch # User Brad Hall # Date 1339108495 25200 # Node ID 9fff2b8217b64bd8fe1bd6461e1612290b5b8d73 # Parent adf4a0890cc57380a1a3bdc8d57c62b354d3b37a 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. diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -74,6 +74,8 @@ def _buildmeta(ui, repo, args, partial=F 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')