# HG changeset patch # User Patrick Mezard # Date 1268169103 -3600 # Node ID 508fda6b8637af8a4c223a865c4d35a029fb4242 # Parent 65b178f30eae2dd895b25fe507ef463b27b9d7e6 convert: handle svn tree with empty roots (issue2079) diff -r 65b178f30eae -r 508fda6b8637 hgext/convert/subversion.py --- a/hgext/convert/subversion.py Tue Mar 09 20:38:23 2010 +0100 +++ b/hgext/convert/subversion.py Tue Mar 09 22:11:43 2010 +0100 @@ -812,6 +812,9 @@ break if not paths: self.ui.debug('revision %d has no entries\n' % revnum) + # If we ever leave the loop on an empty + # revision, do not try to get a parent branch + lastonbranch = lastonbranch or revnum == 0 continue cset, lastonbranch = parselogentry(paths, revnum, author, date, message)