convert: better feedback when filtering out empty revisions
Original patch by Herbert Griebel <herbertg@gmx.at>
--- 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