##// END OF EJS Templates
convert: compare tags from all heads instead of just one...
Sean Farley -
r20376:7a479791 default
parent child Browse files
Show More
@@ -201,10 +201,13 b' class mercurial_sink(converter_sink):'
201 parentctx = None
201 parentctx = None
202 tagparent = nullid
202 tagparent = nullid
203
203
204 try:
204 oldlines = set()
205 oldlines = sorted(parentctx['.hgtags'].data().splitlines(True))
205 for branch, heads in self.repo.branchmap().iteritems():
206 except Exception:
206 for h in heads:
207 oldlines = []
207 if '.hgtags' in self.repo[h]:
208 oldlines.update(
209 set(self.repo[h]['.hgtags'].data().splitlines(True)))
210 oldlines = sorted(list(oldlines))
208
211
209 newlines = sorted([("%s %s\n" % (tags[tag], tag)) for tag in tags])
212 newlines = sorted([("%s %s\n" % (tags[tag], tag)) for tag in tags])
210 if newlines == oldlines:
213 if newlines == oldlines:
General Comments 0
You need to be logged in to leave comments. Login now