##// END OF EJS Templates
manifest: remove last uses of repo.manifest...
Durham Goode -
r30375:11b8b740 default
parent child Browse files
Show More
@@ -18,7 +18,7 b' def pdb(ui, repo, msg, **opts):'
18 'mercurial': mercurial,
18 'mercurial': mercurial,
19 'repo': repo,
19 'repo': repo,
20 'cl': repo.changelog,
20 'cl': repo.changelog,
21 'mf': repo.manifest,
21 'mf': repo.manifestlog,
22 }
22 }
23
23
24 code.interact(msg, local=objects)
24 code.interact(msg, local=objects)
@@ -27,7 +27,7 b' def ipdb(ui, repo, msg, **opts):'
27 import IPython
27 import IPython
28
28
29 cl = repo.changelog
29 cl = repo.changelog
30 mf = repo.manifest
30 mf = repo.manifestlog
31 cl, mf # use variables to appease pyflakes
31 cl, mf # use variables to appease pyflakes
32
32
33 IPython.embed()
33 IPython.embed()
@@ -352,7 +352,7 b' class mercurial_sink(common.converter_si'
352 p2 = node
352 p2 = node
353
353
354 if self.filemapmode and nparents == 1:
354 if self.filemapmode and nparents == 1:
355 man = self.repo.manifest
355 man = self.repo.manifestlog._revlog
356 mnode = self.repo.changelog.read(nodemod.bin(p2))[0]
356 mnode = self.repo.changelog.read(nodemod.bin(p2))[0]
357 closed = 'close' in commit.extra
357 closed = 'close' in commit.extra
358 if not closed and not man.cmp(m1node, man.revision(mnode)):
358 if not closed and not man.cmp(m1node, man.revision(mnode)):
@@ -359,7 +359,7 b' class bundlerepository(localrepo.localre'
359
359
360 @localrepo.unfilteredpropertycache
360 @localrepo.unfilteredpropertycache
361 def filestart(self):
361 def filestart(self):
362 self.manifest
362 self.manifestlog
363 return self.filestart
363 return self.filestart
364
364
365 def url(self):
365 def url(self):
@@ -559,7 +559,7 b' def openrevlog(repo, cmd, file_, opts):'
559 if len(dirlog):
559 if len(dirlog):
560 r = dirlog
560 r = dirlog
561 elif mf:
561 elif mf:
562 r = repo.manifest
562 r = repo.manifestlog._revlog
563 elif file_:
563 elif file_:
564 filelog = repo.file(file_)
564 filelog = repo.file(file_)
565 if len(filelog):
565 if len(filelog):
@@ -1324,7 +1324,8 b' class changeset_printer(object):'
1324 mnode = ctx.manifestnode()
1324 mnode = ctx.manifestnode()
1325 # i18n: column positioning for "hg log"
1325 # i18n: column positioning for "hg log"
1326 self.ui.write(_("manifest: %d:%s\n") %
1326 self.ui.write(_("manifest: %d:%s\n") %
1327 (self.repo.manifest.rev(mnode), hex(mnode)),
1327 (self.repo.manifestlog._revlog.rev(mnode),
1328 hex(mnode)),
1328 label='ui.debug log.manifest')
1329 label='ui.debug log.manifest')
1329 # i18n: column positioning for "hg log"
1330 # i18n: column positioning for "hg log"
1330 self.ui.write(_("user: %s\n") % ctx.user(),
1331 self.ui.write(_("user: %s\n") % ctx.user(),
@@ -269,7 +269,7 b' def changeidctx(repo, changeid):'
269 try:
269 try:
270 ctx = repo[changeid]
270 ctx = repo[changeid]
271 except error.RepoError:
271 except error.RepoError:
272 man = repo.manifest
272 man = repo.manifestlog._revlog
273 ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))]
273 ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))]
274
274
275 return ctx
275 return ctx
@@ -67,7 +67,7 b' def _collectbrokencsets(repo, files, str'
67 _, brokenset = revlog.getstrippoint(striprev)
67 _, brokenset = revlog.getstrippoint(striprev)
68 s.update([revlog.linkrev(r) for r in brokenset])
68 s.update([revlog.linkrev(r) for r in brokenset])
69
69
70 collectone(repo.manifest)
70 collectone(repo.manifestlog._revlog)
71 for fname in files:
71 for fname in files:
72 collectone(repo.file(fname))
72 collectone(repo.file(fname))
73
73
@@ -153,7 +153,7 b' def strip(ui, repo, nodelist, backup=Tru'
153 tmpbundlefile = _bundle(repo, savebases, saveheads, node, 'temp',
153 tmpbundlefile = _bundle(repo, savebases, saveheads, node, 'temp',
154 compress=False)
154 compress=False)
155
155
156 mfst = repo.manifest
156 mfst = repo.manifestlog._revlog
157
157
158 curtr = repo.currenttransaction()
158 curtr = repo.currenttransaction()
159 if curtr is not None:
159 if curtr is not None:
@@ -458,7 +458,8 b' def showmanifest(**args):'
458 # just avoid crash, we might want to use the 'ff...' hash in future
458 # just avoid crash, we might want to use the 'ff...' hash in future
459 return
459 return
460 args = args.copy()
460 args = args.copy()
461 args.update({'rev': repo.manifest.rev(mnode), 'node': hex(mnode)})
461 args.update({'rev': repo.manifestlog._revlog.rev(mnode),
462 'node': hex(mnode)})
462 return templ('manifest', **args)
463 return templ('manifest', **args)
463
464
464 def shownames(namespace, **args):
465 def shownames(namespace, **args):
@@ -51,7 +51,7 b' class verifier(object):'
51 self.errors = 0
51 self.errors = 0
52 self.warnings = 0
52 self.warnings = 0
53 self.havecl = len(repo.changelog) > 0
53 self.havecl = len(repo.changelog) > 0
54 self.havemf = len(repo.manifest) > 0
54 self.havemf = len(repo.manifestlog._revlog) > 0
55 self.revlogv1 = repo.changelog.version != revlog.REVLOGV0
55 self.revlogv1 = repo.changelog.version != revlog.REVLOGV0
56 self.lrugetctx = util.lrucachefunc(repo.changectx)
56 self.lrugetctx = util.lrucachefunc(repo.changectx)
57 self.refersmf = False
57 self.refersmf = False
General Comments 0
You need to be logged in to leave comments. Login now