Show More
@@ -509,7 +509,7 b' class localrepository(repo.repository):' | |||||
509 | # deleted from p2? |
|
509 | # deleted from p2? | |
510 | pass |
|
510 | pass | |
511 |
|
511 | |||
512 |
mnode = self.manifest.add( |
|
512 | mnode = self.manifest.add(m1, tr, linkrev, c1[0], c2[0]) | |
513 | user = user or self.ui.username() |
|
513 | user = user or self.ui.username() | |
514 | n = self.changelog.add(mnode, changed, text, tr, p1, p2, user, date) |
|
514 | n = self.changelog.add(mnode, changed, text, tr, p1, p2, user, date) | |
515 | tr.close() |
|
515 | tr.close() | |
@@ -597,7 +597,7 b' class localrepository(repo.repository):' | |||||
597 | for f in remove: |
|
597 | for f in remove: | |
598 | if f in m1: |
|
598 | if f in m1: | |
599 | del m1[f] |
|
599 | del m1[f] | |
600 |
mn = self.manifest.add( |
|
600 | mn = self.manifest.add(m1, tr, linkrev, c1[0], c2[0], | |
601 | (new, remove)) |
|
601 | (new, remove)) | |
602 |
|
602 | |||
603 | # add changeset |
|
603 | # add changeset |
@@ -53,9 +53,6 b' class manifest(revlog):' | |||||
53 | self.mapcache = (node, mapping) |
|
53 | self.mapcache = (node, mapping) | |
54 | return mapping |
|
54 | return mapping | |
55 |
|
55 | |||
56 | def readflags(self, node): |
|
|||
57 | return self.read(node) |
|
|||
58 |
|
||||
59 | def diff(self, a, b): |
|
56 | def diff(self, a, b): | |
60 | return mdiff.textdiff(str(a), str(b)) |
|
57 | return mdiff.textdiff(str(a), str(b)) | |
61 |
|
58 | |||
@@ -112,7 +109,7 b' class manifest(revlog):' | |||||
112 | f, n = l.split('\0') |
|
109 | f, n = l.split('\0') | |
113 | return bin(n[:40]), n[40:-1] == 'x' |
|
110 | return bin(n[:40]), n[40:-1] == 'x' | |
114 |
|
111 | |||
115 |
def add(self, map |
|
112 | def add(self, map, transaction, link, p1=None, p2=None, | |
116 | changed=None): |
|
113 | changed=None): | |
117 | # apply the changes collected during the bisect loop to our addlist |
|
114 | # apply the changes collected during the bisect loop to our addlist | |
118 | # return a delta suitable for addrevision |
|
115 | # return a delta suitable for addrevision | |
@@ -140,7 +137,7 b' class manifest(revlog):' | |||||
140 |
|
137 | |||
141 | # if this is changed to support newlines in filenames, |
|
138 | # if this is changed to support newlines in filenames, | |
142 | # be sure to check the templates/ dir again (especially *-raw.tmpl) |
|
139 | # be sure to check the templates/ dir again (especially *-raw.tmpl) | |
143 |
text = ["%s\000%s%s\n" % (f, hex(map[f]), |
|
140 | text = ["%s\000%s%s\n" % (f, hex(map[f]), map.flags(f)) for f in files] | |
144 | self.listcache = array.array('c', "".join(text)) |
|
141 | self.listcache = array.array('c', "".join(text)) | |
145 | cachedelta = None |
|
142 | cachedelta = None | |
146 | else: |
|
143 | else: | |
@@ -166,7 +163,7 b' class manifest(revlog):' | |||||
166 | # bs will either be the index of the item or the insert point |
|
163 | # bs will either be the index of the item or the insert point | |
167 | start, end = self._search(addbuf, f, start) |
|
164 | start, end = self._search(addbuf, f, start) | |
168 | if w[1] == 0: |
|
165 | if w[1] == 0: | |
169 |
l = "%s\000%s%s\n" % (f, hex(map[f]), |
|
166 | l = "%s\000%s%s\n" % (f, hex(map[f]), map.flags(f)) | |
170 | else: |
|
167 | else: | |
171 | l = "" |
|
168 | l = "" | |
172 | if start == end and w[1] == 1: |
|
169 | if start == end and w[1] == 1: |
General Comments 0
You need to be logged in to leave comments.
Login now