hgext3rd/evolve/rewriteutil.py
changeset 4714 c51fc0ae7a7e
parent 4710 0e0731406efd
child 4723 41885988921e
equal deleted inserted replaced
4713:fbe7f35a6926 4714:c51fc0ae7a7e
   148 
   148 
   149     # If the requested bookmark is not the only one pointing to a
   149     # If the requested bookmark is not the only one pointing to a
   150     # a revision we have to only delete the bookmark and not strip
   150     # a revision we have to only delete the bookmark and not strip
   151     # anything. revsets cannot detect that case.
   151     # anything. revsets cannot detect that case.
   152     nodetobookmarks = {}
   152     nodetobookmarks = {}
   153     for mark, bnode in repomarks.iteritems():
   153     for mark, bnode in repomarks.items():
   154         nodetobookmarks.setdefault(bnode, []).append(mark)
   154         nodetobookmarks.setdefault(bnode, []).append(mark)
   155     for marks in nodetobookmarks.values():
   155     for marks in nodetobookmarks.values():
   156         if bookmarks.issuperset(marks):
   156         if bookmarks.issuperset(marks):
   157             rsrevs = compat.bmrevset(repo, marks[0])
   157             rsrevs = compat.bmrevset(repo, marks[0])
   158             revs = set(revs)
   158             revs = set(revs)