# HG changeset patch # User Jason R. Coombs # Date 1666210490 14400 # Node ID f599a946181d8dd6bf639277f2d8161856cde4e5 # Parent eb02decdf0abd2f0c9252e299546c44f6b7ca3e9 shelve: avoid setting overloading tmpwctx diff -r eb02decdf0ab -r f599a946181d mercurial/shelve.py --- a/mercurial/shelve.py Mon Oct 10 14:48:39 2022 +0100 +++ b/mercurial/shelve.py Wed Oct 19 16:14:50 2022 -0400 @@ -1177,7 +1177,6 @@ oldtiprev = len(repo) pctx = repo[b'.'] - tmpwctx = pctx # The goal is to have a commit structure like so: # ...-> pctx -> tmpwctx -> shelvectx # where tmpwctx is an optional commit with the user's pending changes @@ -1186,7 +1185,7 @@ activebookmark = _backupactivebookmark(repo) tmpwctx, addedbefore = _commitworkingcopychanges( - ui, repo, opts, tmpwctx + ui, repo, opts, pctx ) repo, shelvectx = _unshelverestorecommit(ui, repo, tr, basename) _checkunshelveuntrackedproblems(ui, repo, shelvectx)