From patchwork Mon Apr 7 21:11:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4,of,6,misc] mq: repo['.'] is not a wctx, repo[None] is From: Mads Kiilerich X-Patchwork-Id: 4249 Message-Id: <645cf5d94000e9bd69a2.1396905096@mk-desktop> To: mercurial-devel@selenic.com Date: Mon, 07 Apr 2014 23:11:36 +0200 # HG changeset patch # User Mads Kiilerich # 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()