Mercurial > hg-stable
diff hgext/convert/bzr.py @ 16061:915e06faa8f3
convert/bzr: handle empty bzr repositories (issue3233)
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 02 Feb 2012 10:15:13 +0100 |
parents | f84dda152a55 |
children | 4e4c416a0b1f |
line wrap: on
line diff
--- 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):