equal
deleted
inserted
replaced
194 pass |
194 pass |
195 |
195 |
196 return _hashlist(pycompat.maplist(trystat, paths))[:12] |
196 return _hashlist(pycompat.maplist(trystat, paths))[:12] |
197 |
197 |
198 |
198 |
199 class hashstate(object): |
199 class hashstate: |
200 """a structure storing confighash, mtimehash, paths used for mtimehash""" |
200 """a structure storing confighash, mtimehash, paths used for mtimehash""" |
201 |
201 |
202 def __init__(self, confighash, mtimehash, mtimepaths): |
202 def __init__(self, confighash, mtimehash, mtimepaths): |
203 self.confighash = confighash |
203 self.confighash = confighash |
204 self.mtimehash = mtimehash |
204 self.mtimehash = mtimehash |
290 commandserver.setuplogging(newlui, fp=cdebug) |
290 commandserver.setuplogging(newlui, fp=cdebug) |
291 |
291 |
292 return (newui, newlui) |
292 return (newui, newlui) |
293 |
293 |
294 |
294 |
295 class channeledsystem(object): |
295 class channeledsystem: |
296 """Propagate ui.system() request in the following format: |
296 """Propagate ui.system() request in the following format: |
297 |
297 |
298 payload length (unsigned int), |
298 payload length (unsigned int), |
299 type, '\0', |
299 type, '\0', |
300 cmd, '\0', |
300 cmd, '\0', |
621 dirname, basename = os.path.split(address) |
621 dirname, basename = os.path.split(address) |
622 basename = basename.split(b'.', 1)[0] |
622 basename = basename.split(b'.', 1)[0] |
623 return b'%s-%s' % (os.path.join(dirname, basename), hashstr) |
623 return b'%s-%s' % (os.path.join(dirname, basename), hashstr) |
624 |
624 |
625 |
625 |
626 class chgunixservicehandler(object): |
626 class chgunixservicehandler: |
627 """Set of operations for chg services""" |
627 """Set of operations for chg services""" |
628 |
628 |
629 pollinterval = 1 # [sec] |
629 pollinterval = 1 # [sec] |
630 |
630 |
631 def __init__(self, ui): |
631 def __init__(self, ui): |