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