Show More
@@ -8,7 +8,7 b'' | |||||
8 | from node import * |
|
8 | from node import * | |
9 | from remoterepo import * |
|
9 | from remoterepo import * | |
10 | from demandload import * |
|
10 | from demandload import * | |
11 |
demandload(globals(), "hg os re s |
|
11 | demandload(globals(), "hg os re stat") | |
12 |
|
12 | |||
13 | class sshrepository(remoterepository): |
|
13 | class sshrepository(remoterepository): | |
14 | def __init__(self, ui, path): |
|
14 | def __init__(self, ui, path): | |
@@ -37,8 +37,8 b' class sshrepository(remoterepository):' | |||||
37 |
|
37 | |||
38 | def readerr(self): |
|
38 | def readerr(self): | |
39 | while 1: |
|
39 | while 1: | |
40 | r,w,x = select.select([self.pipee], [], [], 0) |
|
40 | size = os.fstat(self.pipee.fileno())[stat.ST_SIZE] | |
41 |
if |
|
41 | if size == 0: break | |
42 | l = self.pipee.readline() |
|
42 | l = self.pipee.readline() | |
43 | if not l: break |
|
43 | if not l: break | |
44 | self.ui.status("remote: ", l) |
|
44 | self.ui.status("remote: ", l) | |
@@ -47,8 +47,7 b' class sshrepository(remoterepository):' | |||||
47 | try: |
|
47 | try: | |
48 | self.pipeo.close() |
|
48 | self.pipeo.close() | |
49 | self.pipei.close() |
|
49 | self.pipei.close() | |
50 | for l in self.pipee: |
|
50 | readerr() | |
51 | self.ui.status("remote: ", l) |
|
|||
52 | self.pipee.close() |
|
51 | self.pipee.close() | |
53 | except: |
|
52 | except: | |
54 | pass |
|
53 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now