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