Patchwork D2968: memctx: create parent contexts using "repo[p]" syntax

login
register
mail settings
Submitter phabricator
Date March 30, 2018, 5:24 p.m.
Message ID <4826dc9d1d17b8bd11ef28b39eb73cd3@localhost.localdomain>
Download mbox | patch
Permalink /patch/29969/
State Not Applicable
Headers show

Comments

phabricator - March 30, 2018, 5:24 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG05ff1a155a21: memctx: create parent contexts using &quot;repo[p]&quot; syntax (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2968?vs=7370&id=7391

REVISION DETAIL
  https://phab.mercurial-scm.org/D2968

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2284,7 +2284,7 @@ 
         self._node = None
         parents = [(p or nullid) for p in parents]
         p1, p2 = parents
-        self._parents = [changectx(self._repo, p) for p in (p1, p2)]
+        self._parents = [self._repo[p] for p in (p1, p2)]
         files = sorted(set(files))
         self._files = files
         if branch is not None: