D6687: unshelve: create a matcher only if required on creating unshelve ctx

navaneeth.suresh (Navaneeth Suresh) phabricator at mercurial-scm.org
Mon Jul 29 06:31:10 EDT 2019


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

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)



To: navaneeth.suresh, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list