Show More
@@ -110,17 +110,13 b' class manifest(revlog.revlog):' | |||||
110 | def addlistdelta(addlist, x): |
|
110 | def addlistdelta(addlist, x): | |
111 | # start from the bottom up |
|
111 | # start from the bottom up | |
112 | # so changes to the offsets don't mess things up. |
|
112 | # so changes to the offsets don't mess things up. | |
113 | i = len(x) |
|
113 | for start, end, content in reversed(x): | |
114 |
|
|
114 | if content: | |
115 | i -= 1 |
|
115 | addlist[start:end] = array.array('c', content) | |
116 | start = x[i][0] |
|
|||
117 | end = x[i][1] |
|
|||
118 | if x[i][2]: |
|
|||
119 | addlist[start:end] = array.array('c', x[i][2]) |
|
|||
120 | else: |
|
116 | else: | |
121 | del addlist[start:end] |
|
117 | del addlist[start:end] | |
122 |
return "".join( |
|
118 | return "".join(struct.pack(">lll", start, end, len(content)) + content | |
123 |
|
|
119 | for start, end, content in x) | |
124 |
|
120 | |||
125 | def checkforbidden(l): |
|
121 | def checkforbidden(l): | |
126 | for f in l: |
|
122 | for f in l: |
General Comments 0
You need to be logged in to leave comments.
Login now