Mercurial > hg
changeset 42658:d5cdce3d9164
unshelve: create a matcher only if required on creating unshelve ctx
Differential Revision: https://phab.mercurial-scm.org/D6687
author | Navaneeth Suresh <navaneeths1998@gmail.com> |
---|---|
date | Wed, 24 Jul 2019 18:20:01 +0530 |
parents | aaad4fe55ad1 |
children | ee86ad6f50fe |
files | mercurial/shelve.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/shelve.py Wed Jul 24 18:10:50 2019 +0530 +++ b/mercurial/shelve.py Wed Jul 24 18:20:01 2019 +0530 @@ -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)