mercurial/localrepo.py
changeset 2567 2748253b49c2
parent 2551 764a54eb8c5a
parent 2564 55e592041076
child 2578 cf4f0322851d
--- 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()