hgext/convert/bzr.py
changeset 16061 915e06faa8f3
parent 16060 f84dda152a55
child 16099 4e4c416a0b1f
--- a/hgext/convert/bzr.py	Thu Feb 02 10:15:12 2012 +0100
+++ b/hgext/convert/bzr.py	Thu Feb 02 10:15:13 2012 +0100
@@ -107,6 +107,8 @@
             if revid is None:
                 raise util.Abort(_('%s is not a valid revision') % self.rev)
             heads = [revid]
+        # Empty repositories return 'null:', which cannot be retrieved
+        heads = [h for h in heads if h != 'null:']
         return heads
 
     def getfile(self, name, rev):