Mercurial > hg
comparison hgext/graphlog.py @ 8150:bbc24c0753a0
util: use built-in set and frozenset
This drops Python 2.3 compatibility.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 22 Apr 2009 00:55:32 +0200 |
parents | 553aa0cbeab6 |
children | f3abe032fc89 |
comparison
equal
deleted
inserted
replaced
8149:ddbee2d0d634 | 8150:bbc24c0753a0 |
---|---|
284 graphdag = graphabledag(ui, repo, revdag, opts) | 284 graphdag = graphabledag(ui, repo, revdag, opts) |
285 ascii(ui, grapher(graphdag)) | 285 ascii(ui, grapher(graphdag)) |
286 | 286 |
287 def graphrevs(repo, nodes, opts): | 287 def graphrevs(repo, nodes, opts): |
288 nodes.reverse() | 288 nodes.reverse() |
289 include = util.set(nodes) | 289 include = set(nodes) |
290 limit = cmdutil.loglimit(opts) | 290 limit = cmdutil.loglimit(opts) |
291 count = 0 | 291 count = 0 |
292 for node in nodes: | 292 for node in nodes: |
293 if count >= limit: | 293 if count >= limit: |
294 break | 294 break |