##// END OF EJS Templates
index: use `index.has_node` in `analyzeremotephases`...
marmoute -
r43938:9970412d default
parent child Browse files
Show More
@@ -672,7 +672,7 def analyzeremotephases(repo, subset, ro
672 672 repo = repo.unfiltered()
673 673 # build list from dictionary
674 674 draftroots = []
675 nodemap = repo.changelog.nodemap # to filter unknown nodes
675 has_node = repo.changelog.index.has_node # to filter unknown nodes
676 676 for nhex, phase in pycompat.iteritems(roots):
677 677 if nhex == b'publishing': # ignore data related to publish option
678 678 continue
@@ -688,7 +688,7 def analyzeremotephases(repo, subset, ro
688 688 % nhex
689 689 )
690 690 elif phase == draft:
691 if node in nodemap:
691 if has_node(node):
692 692 draftroots.append(node)
693 693 else:
694 694 repo.ui.warn(
General Comments 0
You need to be logged in to leave comments. Login now