hgext/win32text.py
changeset 8150 bbc24c0753a0
parent 8147 441dc7becd43
child 8253 e553fe565c61
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.