--- a/mercurial/localrepo.py Tue Jul 04 15:36:05 2006 -0700
+++ b/mercurial/localrepo.py Wed Jul 05 13:28:25 2006 -0500
@@ -9,7 +9,7 @@
from i18n import gettext as _
from demandload import *
demandload(globals(), "appendfile changegroup")
-demandload(globals(), "changelog dirstate filelog manifest repo")
+demandload(globals(), "changelog dirstate filelog manifest repo context")
demandload(globals(), "re lock transaction tempfile stat mdiff errno ui")
demandload(globals(), "os revlog util")
@@ -259,6 +259,14 @@
f = f[1:]
return filelog.filelog(self.opener, f, self.revlogversion)
+ def changectx(self, changeid):
+ return context.changectx(self, changeid)
+
+ def filectx(self, path, changeid=None, fileid=None):
+ """changeid can be a changeset revision, node, or tag.
+ fileid can be a file revision or node."""
+ return context.filectx(self, path, changeid, fileid)
+
def getcwd(self):
return self.dirstate.getcwd()