equal
deleted
inserted
replaced
19 pycompat, |
19 pycompat, |
20 util, |
20 util, |
21 wireproto, |
21 wireproto, |
22 wireprotoframing, |
22 wireprotoframing, |
23 wireprototypes, |
23 wireprototypes, |
|
24 ) |
|
25 from .utils import ( |
|
26 procutil, |
24 ) |
27 ) |
25 |
28 |
26 stringio = util.stringio |
29 stringio = util.stringio |
27 |
30 |
28 urlerr = util.urlerr |
31 urlerr = util.urlerr |
1028 |
1031 |
1029 hook.redirect(True) |
1032 hook.redirect(True) |
1030 ui.fout = repo.ui.fout = ui.ferr |
1033 ui.fout = repo.ui.fout = ui.ferr |
1031 |
1034 |
1032 # Prevent insertion/deletion of CRs |
1035 # Prevent insertion/deletion of CRs |
1033 util.setbinary(self._fin) |
1036 procutil.setbinary(self._fin) |
1034 util.setbinary(self._fout) |
1037 procutil.setbinary(self._fout) |
1035 |
1038 |
1036 def serve_forever(self): |
1039 def serve_forever(self): |
1037 self.serveuntil(threading.Event()) |
1040 self.serveuntil(threading.Event()) |
1038 sys.exit(0) |
1041 sys.exit(0) |
1039 |
1042 |