changeset 2628:9999a796d389

context.py: filectxs was using a keyword arg, add it to filectx
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 16 Jul 2006 16:39:03 +0200
parents b779319a532b
children a49534aac47d
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Jul 16 16:39:02 2006 +0200
+++ b/mercurial/context.py	Sun Jul 16 16:39:03 2006 +0200
@@ -51,9 +51,11 @@
         node, flag = self._repo.manifest.find(self.changeset()[0], path)
         return node
 
-    def filectx(self, path):
+    def filectx(self, path, fileid=None):
         """get a file context from this changeset"""
-        return filectx(self._repo, path, fileid=self.filenode(path))
+        if fileid is None:
+            fileid = self.filenode(path)
+        return filectx(self._repo, path, fileid=fileid)
 
     def filectxs(self):
         """generate a file context for each file in this changeset's