[PATCH 4 of 6 misc] mq: repo['.'] is not a wctx, repo[None] is

Mads Kiilerich mads at kiilerich.com
Mon Apr 7 16:11:36 CDT 2014


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1396905020 -7200
#      Mon Apr 07 23:10:20 2014 +0200
# Node ID 645cf5d94000e9bd69a291a611edc372a6ae527c
# Parent  6f9338816a38cacf8aeaa89059311b35752134bd
mq: repo['.'] is not a wctx, repo[None] is

The parameters passed to subrepo.submerge are confusing anyway.

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -826,10 +826,10 @@ class queue(object):
                 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()
 


More information about the Mercurial-devel mailing list