comparison hgext/rebase.py @ 8163:62d7287fe6b0

rebase, revlog: use set(x) instead of set(x.keys()) The latter is both unnecessary and slower.
author Martin Geisler <mg@lazybytes.net>
date Sat, 25 Apr 2009 22:25:49 +0200
parents bbc24c0753a0
children a1a5a57efe90
comparison
equal deleted inserted replaced
8162:6f14253416bd 8163:62d7287fe6b0
126 if 'qtip' in repo.tags(): 126 if 'qtip' in repo.tags():
127 updatemq(repo, state, skipped, **opts) 127 updatemq(repo, state, skipped, **opts)
128 128
129 if not keepf: 129 if not keepf:
130 # Remove no more useful revisions 130 # Remove no more useful revisions
131 if (set(repo.changelog.descendants(min(state))) 131 if set(repo.changelog.descendants(min(state))) - set(state):
132 - set(state.keys())):
133 ui.warn(_("warning: new changesets detected on source branch, " 132 ui.warn(_("warning: new changesets detected on source branch, "
134 "not stripping\n")) 133 "not stripping\n"))
135 else: 134 else:
136 repair.strip(repo.ui, repo, repo[min(state)].node(), "strip") 135 repair.strip(repo.ui, repo, repo[min(state)].node(), "strip")
137 136