diff mercurial/context.py @ 21938:c8411fb5dfef stable

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.
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 16 Jul 2014 13:07:39 -0500
parents 5809d62e7106
children 412ac613fd89
line wrap: on
line diff
--- 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', '') == '':