##// 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 b' def analyzeremotephases(repo, subset, ro'
672 repo = repo.unfiltered()
672 repo = repo.unfiltered()
673 # build list from dictionary
673 # build list from dictionary
674 draftroots = []
674 draftroots = []
675 nodemap = repo.changelog.nodemap # to filter unknown nodes
675 has_node = repo.changelog.index.has_node # to filter unknown nodes
676 for nhex, phase in pycompat.iteritems(roots):
676 for nhex, phase in pycompat.iteritems(roots):
677 if nhex == b'publishing': # ignore data related to publish option
677 if nhex == b'publishing': # ignore data related to publish option
678 continue
678 continue
@@ -688,7 +688,7 b' def analyzeremotephases(repo, subset, ro'
688 % nhex
688 % nhex
689 )
689 )
690 elif phase == draft:
690 elif phase == draft:
691 if node in nodemap:
691 if has_node(node):
692 draftroots.append(node)
692 draftroots.append(node)
693 else:
693 else:
694 repo.ui.warn(
694 repo.ui.warn(
General Comments 0
You need to be logged in to leave comments. Login now