comparison mercurial/commands.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 496ae1ea4698
children 08e1baf924ca
comparison
equal deleted inserted replaced
8149:ddbee2d0d634 8150:bbc24c0753a0
1304 if not branchrevs: 1304 if not branchrevs:
1305 # Assume we're looking repo-wide heads if no revs were specified. 1305 # Assume we're looking repo-wide heads if no revs were specified.
1306 heads = repo.heads(start, closed=closed) 1306 heads = repo.heads(start, closed=closed)
1307 else: 1307 else:
1308 heads = [] 1308 heads = []
1309 visitedset = util.set() 1309 visitedset = set()
1310 for branchrev in branchrevs: 1310 for branchrev in branchrevs:
1311 branch = repo[branchrev].branch() 1311 branch = repo[branchrev].branch()
1312 if branch in visitedset: 1312 if branch in visitedset:
1313 continue 1313 continue
1314 visitedset.add(branch) 1314 visitedset.add(branch)