Show More
@@ -538,13 +538,7 b' def _tempaddress(address):' | |||
|
538 | 538 | def _hashaddress(address, hashstr): |
|
539 | 539 | return '%s-%s' % (address, hashstr) |
|
540 | 540 | |
|
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 | ||
|
541 | class _chgunixservice(commandserver.unixservice): | |
|
548 | 542 | def init(self): |
|
549 | 543 | self._inithashstate() |
|
550 | 544 | self._checkextensions() |
@@ -653,6 +647,12 b' class _requesthandler(commandserver._req' | |||
|
653 | 647 | return chgcmdserver(ui, repo, fin, fout, conn, |
|
654 | 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 | 656 | def uisetup(ui): |
|
657 | 657 | commandserver._servicemap['chgunix'] = chgunixservice |
|
658 | 658 |
General Comments 0
You need to be logged in to leave comments.
Login now