Submitter | phabricator |
---|---|
Date | April 6, 2018, 6:50 p.m. |
Message ID | <faf2ba9d2e54df4c511b0445a1f8dc15@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/30454/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py --- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -363,10 +363,8 @@ return p2 def puttags(self, tags): - try: - tagparent = self.repo[self.tagsbranch].node() - except error.RepoError: - tagparent = nodemod.nullid + tagparent = self.repo.branchtip(self.tagsbranch, ignoremissing=True) + tagparent = tagparent or nodemod.nullid oldlines = set() for branch, heads in self.repo.branchmap().iteritems():