Mercurial > public > mercurial-scm > hg
diff hgext/convert/filemap.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 | 46293a0c7e9f |
line wrap: on
line diff
--- a/hgext/convert/filemap.py Fri Apr 24 10:43:12 2009 +0200 +++ b/hgext/convert/filemap.py Wed Apr 22 00:55:32 2009 +0200 @@ -148,7 +148,7 @@ # wanted by previous runs. self._rebuilt = not revmap seen = {SKIPREV: SKIPREV} - dummyset = util.set() + dummyset = set() converted = [] for rev in revmap.order: mapped = revmap[rev] @@ -237,7 +237,7 @@ # map to any revision in the restricted graph. Put SKIPREV # in the set of wanted ancestors to simplify code elsewhere self.parentmap[rev] = SKIPREV - self.wantedancestors[rev] = util.set((SKIPREV,)) + self.wantedancestors[rev] = set((SKIPREV,)) return # Reuse the data from our parent. @@ -254,7 +254,7 @@ # The set of wanted ancestors of rev is the union of the sets # of wanted ancestors of its parents. Plus rev itself. - wrev = util.set() + wrev = set() for p in parents: wrev.update(self.wantedancestors[p]) wrev.add(rev)