equal
deleted
inserted
replaced
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. |