mercurial/strip.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 50112 62158471d038
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
   191 
   191 
   192             # If the requested bookmark is not the only one pointing to a
   192             # If the requested bookmark is not the only one pointing to a
   193             # a revision we have to only delete the bookmark and not strip
   193             # a revision we have to only delete the bookmark and not strip
   194             # anything. revsets cannot detect that case.
   194             # anything. revsets cannot detect that case.
   195             nodetobookmarks = {}
   195             nodetobookmarks = {}
   196             for mark, node in pycompat.iteritems(repomarks):
   196             for mark, node in repomarks.items():
   197                 nodetobookmarks.setdefault(node, []).append(mark)
   197                 nodetobookmarks.setdefault(node, []).append(mark)
   198             for marks in nodetobookmarks.values():
   198             for marks in nodetobookmarks.values():
   199                 if bookmarks.issuperset(marks):
   199                 if bookmarks.issuperset(marks):
   200                     rsrevs = scmutil.bookmarkrevs(repo, marks[0])
   200                     rsrevs = scmutil.bookmarkrevs(repo, marks[0])
   201                     revs.update(set(rsrevs))
   201                     revs.update(set(rsrevs))