convert: handle svn tree with empty roots (issue2079) stable
authorPatrick Mezard <pmezard@gmail.com>
Tue, 09 Mar 2010 22:11:43 +0100
branchstable
changeset 10618 508fda6b8637
parent 10616 65b178f30eae
child 10619 bcdf37680569
child 10637 7ce62865d72a
convert: handle svn tree with empty roots (issue2079)
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)