Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 50038:6cdcab3ae3fa
dirstate: use `dirstate.change_files` to scope the change in `revert`
This is the way.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 13 Dec 2022 15:01:59 +0100 |
parents | 28dfb2df4ab9 |
children | 237e9d2e1c71 |
comparison
equal
deleted
inserted
replaced
50037:46883d91e2b0 | 50038:6cdcab3ae3fa |
---|---|
3390 # The mapping is in the form: | 3390 # The mapping is in the form: |
3391 # <abs path in repo> -> (<path from CWD>, <exactly specified by matcher?>) | 3391 # <abs path in repo> -> (<path from CWD>, <exactly specified by matcher?>) |
3392 names = {} | 3392 names = {} |
3393 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) | 3393 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) |
3394 | 3394 |
3395 with repo.wlock(): | 3395 with repo.wlock(), repo.dirstate.changing_files(repo): |
3396 ## filling of the `names` mapping | 3396 ## filling of the `names` mapping |
3397 # walk dirstate to fill `names` | 3397 # walk dirstate to fill `names` |
3398 | 3398 |
3399 interactive = opts.get(b'interactive', False) | 3399 interactive = opts.get(b'interactive', False) |
3400 wctx = repo[None] | 3400 wctx = repo[None] |