mq: repo['.'] is not a wctx, repo[None] is
authorMads Kiilerich <madski@unity3d.com>
Mon, 07 Apr 2014 23:10:20 +0200
changeset 20959 b6e0616d08cb
parent 20958 df33c9014430
child 20960 8e5b21ce8ee9
mq: repo['.'] is not a wctx, repo[None] is The parameters passed to subrepo.submerge are confusing anyway.
hgext/mq.py
--- a/hgext/mq.py	Mon Apr 07 23:10:20 2014 +0200
+++ b/hgext/mq.py	Mon Apr 07 23:10:20 2014 +0200
@@ -826,10 +826,10 @@
                 repo.setparents(p1, merge)
 
             if all_files and '.hgsubstate' in all_files:
-                wctx = repo['.']
-                mctx = actx = repo[None]
+                wctx = repo[None]
+                pctx = repo['.']
                 overwrite = False
-                mergedsubstate = subrepo.submerge(repo, wctx, mctx, actx,
+                mergedsubstate = subrepo.submerge(repo, pctx, wctx, wctx,
                     overwrite)
                 files += mergedsubstate.keys()