Mercurial > hgsubversion
changeset 913:9fff2b8217b6
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.
author | Brad Hall <bhall@fb.com> |
---|---|
date | Thu, 07 Jun 2012 15:34:55 -0700 |
parents | adf4a0890cc5 |
children | 6918f60d0e28 |
files | hgsubversion/svncommands.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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')