Mercurial > hg-stable
changeset 50110:e2b89b6d4cdd
dirstate: use `dirstate.change_files` to scope the change in `shelve`
This is the way.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 15 Dec 2022 02:54:06 +0100 |
parents | 5327ae76b740 |
children | c5ef535e274e |
files | mercurial/shelve.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/shelve.py Thu Dec 15 03:04:58 2022 +0100 +++ b/mercurial/shelve.py Thu Dec 15 02:54:06 2022 +0100 @@ -607,7 +607,8 @@ activebookmark = _backupactivebookmark(repo) extra = {b'internal': b'shelve'} if includeunknown: - _includeunknownfiles(repo, pats, opts, extra) + with repo.dirstate.changing_files(repo): + _includeunknownfiles(repo, pats, opts, extra) if _iswctxonnewbranch(repo) and not _isbareshelve(pats, opts): # In non-bare shelve we don't store newly created branch