Patchwork [2,of,6,ctx-minor-fixes] context: fix typo in workingcommitctx

login
register
mail settings
Submitter Sean Farley
Date Sept. 19, 2018, 5:35 a.m.
Message ID <c21a9a45b1a718d67d29.1537335344@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa>
Download mbox | patch
Permalink /patch/34825/
State Accepted
Headers show

Comments

Sean Farley - Sept. 19, 2018, 5:35 a.m.
# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 1528775327 25200
#      Mon Jun 11 20:48:47 2018 -0700
# Branch ctx-minor-fixes
# Node ID c21a9a45b1a718d67d294fb822b58c7d6a2aa207
# Parent  03041a020368729345f9b72e6914122c5e88a302
context: fix typo in workingcommitctx

This was probably a copy pasta error in 745e3b485632. Refactoring memctx
code exposed this bug.

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
index 40267e7..f85f426 100644
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2130,11 +2130,11 @@  class workingcommitctx(workingctx):
     This hides changes in the working directory, if they aren't
     committed in this context.
     """
     def __init__(self, repo, changes,
                  text="", user=None, date=None, extra=None):
-        super(workingctx, self).__init__(repo, text, user, date, extra,
+        super(workingcommitctx, self).__init__(repo, text, user, date, extra,
                                          changes)
 
     def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False):
         """Return matched files only in ``self._status``