Show More
@@ -1162,9 +1162,10 b' class cgpacker(object):' | |||||
1162 | def makelookupmflinknode(tree, nodes): |
|
1162 | def makelookupmflinknode(tree, nodes): | |
1163 | if fastpathlinkrev: |
|
1163 | if fastpathlinkrev: | |
1164 | assert not tree |
|
1164 | assert not tree | |
1165 | return ( |
|
1165 | ||
1166 | manifests.__getitem__ |
|
1166 | # pytype: disable=unsupported-operands | |
1167 | ) # pytype: disable=unsupported-operands |
|
1167 | return manifests.__getitem__ | |
|
1168 | # pytype: enable=unsupported-operands | |||
1168 |
|
1169 | |||
1169 | def lookupmflinknode(x): |
|
1170 | def lookupmflinknode(x): | |
1170 | """Callback for looking up the linknode for manifests. |
|
1171 | """Callback for looking up the linknode for manifests. |
@@ -168,9 +168,9 b' def parsedag(desc):' | |||||
168 | if not desc: |
|
168 | if not desc: | |
169 | return |
|
169 | return | |
170 |
|
170 | |||
171 | wordchars = pycompat.bytestr( |
|
171 | # pytype: disable=wrong-arg-types | |
172 |
|
|
172 | wordchars = pycompat.bytestr(string.ascii_letters + string.digits) | |
173 |
|
|
173 | # pytype: enable=wrong-arg-types | |
174 |
|
174 | |||
175 | labels = {} |
|
175 | labels = {} | |
176 | p1 = -1 |
|
176 | p1 = -1 | |
@@ -179,9 +179,9 b' def parsedag(desc):' | |||||
179 | def resolve(ref): |
|
179 | def resolve(ref): | |
180 | if not ref: |
|
180 | if not ref: | |
181 | return p1 |
|
181 | return p1 | |
182 | elif ref[0] in pycompat.bytestr( |
|
182 | # pytype: disable=wrong-arg-types | |
183 |
|
|
183 | elif ref[0] in pycompat.bytestr(string.digits): | |
184 |
|
|
184 | # pytype: enable=wrong-arg-types | |
185 | return r - int(ref) |
|
185 | return r - int(ref) | |
186 | else: |
|
186 | else: | |
187 | return labels[ref] |
|
187 | return labels[ref] | |
@@ -215,9 +215,9 b' def parsedag(desc):' | |||||
215 |
|
215 | |||
216 | c = nextch() |
|
216 | c = nextch() | |
217 | while c != b'\0': |
|
217 | while c != b'\0': | |
218 | while c in pycompat.bytestr( |
|
218 | # pytype: disable=wrong-arg-types | |
219 |
|
|
219 | while c in pycompat.bytestr(string.whitespace): | |
220 |
|
|
220 | # pytype: enable=wrong-arg-types | |
221 | c = nextch() |
|
221 | c = nextch() | |
222 | if c == b'.': |
|
222 | if c == b'.': | |
223 | yield b'n', (r, [p1]) |
|
223 | yield b'n', (r, [p1]) | |
@@ -225,9 +225,9 b' def parsedag(desc):' | |||||
225 | r += 1 |
|
225 | r += 1 | |
226 | c = nextch() |
|
226 | c = nextch() | |
227 | elif c == b'+': |
|
227 | elif c == b'+': | |
228 | c, digs = nextrun( |
|
228 | # pytype: disable=wrong-arg-types | |
229 |
|
|
229 | c, digs = nextrun(nextch(), pycompat.bytestr(string.digits)) | |
230 |
|
|
230 | # pytype: enable=wrong-arg-types | |
231 | n = int(digs) |
|
231 | n = int(digs) | |
232 | for i in pycompat.xrange(0, n): |
|
232 | for i in pycompat.xrange(0, n): | |
233 | yield b'n', (r, [p1]) |
|
233 | yield b'n', (r, [p1]) |
General Comments 0
You need to be logged in to leave comments.
Login now