convert: better feedback when filtering out empty revisions
authorPatrick Mezard <pmezard@gmail.com>
Sun, 24 May 2009 18:30:59 +0200
changeset 8611 ba42e3c6e602
parent 8610 8ef1f63e554c
child 8612 e10e984bea46
convert: better feedback when filtering out empty revisions Original patch by Herbert Griebel <herbertg@gmx.at>
hgext/convert/hg.py
tests/test-convert-cvs-builtincvsps.out
tests/test-convert-cvs.out
--- a/hgext/convert/hg.py	Thu May 21 17:09:12 2009 +0900
+++ b/hgext/convert/hg.py	Sun May 24 18:30:59 2009 +0200
@@ -155,6 +155,7 @@
             man = self.repo.manifest
             mnode = self.repo.changelog.read(bin(p2))[0]
             if not man.cmp(m1node, man.revision(mnode)):
+                self.ui.status(_("filtering out empty revision\n"))
                 self.repo.rollback()
                 return parent
         return p2
--- a/tests/test-convert-cvs-builtincvsps.out	Thu May 21 17:09:12 2009 +0900
+++ b/tests/test-convert-cvs-builtincvsps.out	Sun May 24 18:30:59 2009 +0200
@@ -42,6 +42,7 @@
 converting...
 2 Initial revision
 1 import
+filtering out empty revision
 rolling back last transaction
 0 ci0
 updating tags
--- a/tests/test-convert-cvs.out	Thu May 21 17:09:12 2009 +0900
+++ b/tests/test-convert-cvs.out	Sun May 24 18:30:59 2009 +0200
@@ -34,6 +34,7 @@
 converting...
 2 Initial revision
 1 import
+filtering out empty revision
 rolling back last transaction
 0 ci0
 updating tags