##// END OF EJS Templates
dirstate: use `dirstate.change_files` to scope the change in `shelve`...
marmoute -
r50949:e2b89b6d default
parent child Browse files
Show More
@@ -607,7 +607,8 b' def _docreatecmd(ui, repo, pats, opts):'
607 activebookmark = _backupactivebookmark(repo)
607 activebookmark = _backupactivebookmark(repo)
608 extra = {b'internal': b'shelve'}
608 extra = {b'internal': b'shelve'}
609 if includeunknown:
609 if includeunknown:
610 _includeunknownfiles(repo, pats, opts, extra)
610 with repo.dirstate.changing_files(repo):
611 _includeunknownfiles(repo, pats, opts, extra)
611
612
612 if _iswctxonnewbranch(repo) and not _isbareshelve(pats, opts):
613 if _iswctxonnewbranch(repo) and not _isbareshelve(pats, opts):
613 # In non-bare shelve we don't store newly created branch
614 # In non-bare shelve we don't store newly created branch
General Comments 0
You need to be logged in to leave comments. Login now