Show More
@@ -103,7 +103,7 b' class defaultformatter(object):' | |||||
103 | result += ': ' + self.ui.label('-' + lines[i], |
|
103 | result += ': ' + self.ui.label('-' + lines[i], | |
104 | 'diff.deleted') |
|
104 | 'diff.deleted') | |
105 |
|
105 | |||
106 | if result[-1] != '\n': |
|
106 | if result[-1:] != '\n': | |
107 | result += '\n' |
|
107 | result += '\n' | |
108 |
|
108 | |||
109 | self.ui.write(result) |
|
109 | self.ui.write(result) |
@@ -98,7 +98,7 b' def _parseresponse(payload):' | |||||
98 | state = 0 # 0: vfspath, 1: size |
|
98 | state = 0 # 0: vfspath, 1: size | |
99 | vfspath = size = '' |
|
99 | vfspath = size = '' | |
100 | while i < l: |
|
100 | while i < l: | |
101 | ch = payload[i] |
|
101 | ch = payload[i:i + 1] | |
102 | if ch == '\0': |
|
102 | if ch == '\0': | |
103 | if state == 1: |
|
103 | if state == 1: | |
104 | result[vfspath] = buffer(payload, i + 1, int(size)) |
|
104 | result[vfspath] = buffer(payload, i + 1, int(size)) |
General Comments 0
You need to be logged in to leave comments.
Login now