Show More
@@ -538,13 +538,7 b' def _tempaddress(address):' | |||||
538 | def _hashaddress(address, hashstr): |
|
538 | def _hashaddress(address, hashstr): | |
539 | return '%s-%s' % (address, hashstr) |
|
539 | return '%s-%s' % (address, hashstr) | |
540 |
|
540 | |||
541 | class chgunixservice(commandserver.unixservice): |
|
541 | class _chgunixservice(commandserver.unixservice): | |
542 | def __init__(self, ui, repo, opts): |
|
|||
543 | super(chgunixservice, self).__init__(ui, repo=None, opts=opts) |
|
|||
544 | if repo: |
|
|||
545 | # one chgserver can serve multiple repos. drop repo infomation |
|
|||
546 | self.ui.setconfig('bundle', 'mainreporoot', '', 'repo') |
|
|||
547 |
|
||||
548 | def init(self): |
|
542 | def init(self): | |
549 | self._inithashstate() |
|
543 | self._inithashstate() | |
550 | self._checkextensions() |
|
544 | self._checkextensions() | |
@@ -653,6 +647,12 b' class _requesthandler(commandserver._req' | |||||
653 | return chgcmdserver(ui, repo, fin, fout, conn, |
|
647 | return chgcmdserver(ui, repo, fin, fout, conn, | |
654 | self.server.hashstate, self.server.baseaddress) |
|
648 | self.server.hashstate, self.server.baseaddress) | |
655 |
|
649 | |||
|
650 | def chgunixservice(ui, repo, opts): | |||
|
651 | if repo: | |||
|
652 | # one chgserver can serve multiple repos. drop repo infomation | |||
|
653 | ui.setconfig('bundle', 'mainreporoot', '', 'repo') | |||
|
654 | return _chgunixservice(ui, repo=None, opts=opts) | |||
|
655 | ||||
656 | def uisetup(ui): |
|
656 | def uisetup(ui): | |
657 | commandserver._servicemap['chgunix'] = chgunixservice |
|
657 | commandserver._servicemap['chgunix'] = chgunixservice | |
658 |
|
658 |
General Comments 0
You need to be logged in to leave comments.
Login now