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