Mercurial > hg
comparison hgext/win32text.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 | 441dc7becd43 |
children | e553fe565c61 |
comparison
equal
deleted
inserted
replaced
8149:ddbee2d0d634 | 8150:bbc24c0753a0 |
---|---|
97 'macencode:': macencode, | 97 'macencode:': macencode, |
98 } | 98 } |
99 | 99 |
100 def forbidnewline(ui, repo, hooktype, node, newline, **kwargs): | 100 def forbidnewline(ui, repo, hooktype, node, newline, **kwargs): |
101 halt = False | 101 halt = False |
102 seen = util.set() | 102 seen = set() |
103 # we try to walk changesets in reverse order from newest to | 103 # we try to walk changesets in reverse order from newest to |
104 # oldest, so that if we see a file multiple times, we take the | 104 # oldest, so that if we see a file multiple times, we take the |
105 # newest version as canonical. this prevents us from blocking a | 105 # newest version as canonical. this prevents us from blocking a |
106 # changegroup that contains an unacceptable commit followed later | 106 # changegroup that contains an unacceptable commit followed later |
107 # by a commit that fixes the problem. | 107 # by a commit that fixes the problem. |