mercurial/chgserver.py
changeset 35582 72b91f905065
parent 35224 6e6d0a5b88e6
child 36781 ffa3026d4196
equal deleted inserted replaced
35581:154754d1f137 35582:72b91f905065
    53 from . import (
    53 from . import (
    54     commandserver,
    54     commandserver,
    55     encoding,
    55     encoding,
    56     error,
    56     error,
    57     extensions,
    57     extensions,
       
    58     node,
    58     pycompat,
    59     pycompat,
    59     util,
    60     util,
    60 )
    61 )
    61 
    62 
    62 _log = commandserver.log
    63 _log = commandserver.log
    63 
    64 
    64 def _hashlist(items):
    65 def _hashlist(items):
    65     """return sha1 hexdigest for a list"""
    66     """return sha1 hexdigest for a list"""
    66     return hashlib.sha1(str(items)).hexdigest()
    67     return node.hex(hashlib.sha1(str(items)).digest())
    67 
    68 
    68 # sensitive config sections affecting confighash
    69 # sensitive config sections affecting confighash
    69 _configsections = [
    70 _configsections = [
    70     'alias',  # affects global state commands.table
    71     'alias',  # affects global state commands.table
    71     'eol',    # uses setconfig('eol', ...)
    72     'eol',    # uses setconfig('eol', ...)