Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.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 | 616f20e1004a |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/mercurial/revlog.py Wed Apr 15 10:33:58 2009 -0500 +++ b/mercurial/revlog.py Sat Apr 25 22:25:49 2009 +0200 @@ -678,7 +678,7 @@ # find from roots. heads = dict.fromkeys(heads, 0) # Start at the top and keep marking parents until we're done. - nodestotag = set(heads.keys()) + nodestotag = set(heads) # Remember where the top was so we can use it as a limit later. highestrev = max([self.rev(n) for n in nodestotag]) while nodestotag: