memctx: substate needs to be {} instead of None stable
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 16 Jul 2014 13:07:39 -0500
branchstable
changeset 21938 c8411fb5dfef
parent 21937 54ff2789d75e
child 21939 f486001f9d6f
memctx: substate needs to be {} instead of None Setting substate to None was an oversight in 7cfd94ec5d30 and this patch corrects it by setting substate to an empty dictionary which matches what subrepo code expects.
mercurial/context.py
--- a/mercurial/context.py	Wed Jul 23 11:16:22 2014 -0500
+++ b/mercurial/context.py	Wed Jul 16 13:07:39 2014 -0500
@@ -1577,7 +1577,7 @@
         files = sorted(set(files))
         self._status = [files, [], [], [], []]
         self._filectxfn = filectxfn
-        self.substate = None
+        self.substate = {}
 
         self._extra = extra and extra.copy() or {}
         if self._extra.get('branch', '') == '':