equal
deleted
inserted
replaced
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) |