localrepo: do not expose workingctx options
authorPatrick Mezard <pmezard@gmail.com>
Wed, 18 Jun 2008 23:00:20 +0200
changeset 6711 86e1f603a369
parent 6710 0aa91f69a4c4
child 6712 93f127b59793
localrepo: do not expose workingctx options These are implementation details and probably of no use to client code.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Jun 18 22:52:26 2008 +0200
+++ b/mercurial/localrepo.py	Wed Jun 18 23:00:20 2008 +0200
@@ -491,10 +491,8 @@
     def changectx(self, changeid=None):
         return context.changectx(self, changeid)
 
-    def workingctx(self, parents=None, text="", user=None, date=None, 
-                   extra=None, changes=None):
-        return context.workingctx(self, parents, text, user, date, extra, 
-                                  changes)
+    def workingctx(self):
+        return context.workingctx(self)
 
     def parents(self, changeid=None):
         '''
@@ -793,7 +791,8 @@
                 update_dirstate = (self.dirstate.parents()[0] == p1)
                 changes = [files, [], [], [], []]
 
-            wctx = self.workingctx((p1, p2), text, user, date, extra, changes)
+            wctx = context.workingctx(self, (p1, p2), text, user, date, 
+                                      extra, changes)
             return self._commitctx(wctx, force, force_editor, empty_ok, 
                                    use_dirstate, update_dirstate)
         finally: