From patchwork Mon Jul 29 10:31:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6687: unshelve: create a matcher only if required on creating unshelve ctx From: phabricator X-Patchwork-Id: 41097 Message-Id: <9b8e434b2b4a1b939718b27a343fa2e4@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 29 Jul 2019 10:31:10 +0000 Closed by commit rHGd5cdce3d9164: unshelve: create a matcher only if required on creating unshelve ctx (authored by navaneeth.suresh). This revision was automatically updated to reflect the committed changes. CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D6687?vs=16041&id=16092#toc REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6687?vs=16041&id=16092 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6687/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6687 AFFECTED FILES mercurial/shelve.py CHANGE DETAILS To: navaneeth.suresh, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/mercurial/shelve.py b/mercurial/shelve.py --- a/mercurial/shelve.py +++ b/mercurial/shelve.py @@ -836,8 +836,8 @@ snode = repo.commit(text=shelvectx.description(), extra=shelvectx.extra(), user=shelvectx.user()) - m = scmutil.matchfiles(repo, repo[snode].files()) if snode: + m = scmutil.matchfiles(repo, repo[snode].files()) _shelvecreatedcommit(repo, snode, basename, m) return newnode, bool(snode)