Mercurial > public > mercurial-scm > hg
diff hgext/convert/subversion.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 | fca0b16c594a |
children | 127281884959 |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Fri Apr 24 10:43:12 2009 +0200 +++ b/hgext/convert/subversion.py Wed Apr 22 00:55:32 2009 +0200 @@ -564,7 +564,7 @@ out, e.g. 'I copied trunk into a subdirectory of itself instead of making a branch'. The converted repository is significantly smaller if we ignore such revisions.""" - self.blacklist = util.set() + self.blacklist = set() blacklist = self.blacklist for line in file("blacklist.txt", "r"): if not line.startswith("#"): @@ -1099,7 +1099,7 @@ os.rename(tempname, wdest) def dirs_of(self, files): - dirs = util.set() + dirs = set() for f in files: if os.path.isdir(self.wjoin(f)): dirs.add(f) @@ -1155,8 +1155,8 @@ return self.revid(self.childmap[parent]) except KeyError: pass - entries = util.set(self.delete) - files = util.frozenset(files) + entries = set(self.delete) + files = frozenset(files) entries.update(self.add_dirs(files.difference(entries))) if self.copies: for s, d in self.copies: