##// END OF EJS Templates
dirstate: use `dirstate.change_files` to scope the change in `addremove`...
marmoute -
r50926:b979cdde default
parent child Browse files
Show More
@@ -331,7 +331,7 b' def addremove(ui, repo, *pats, **opts):'
331 331 opts = pycompat.byteskwargs(opts)
332 332 if not opts.get(b'similarity'):
333 333 opts[b'similarity'] = b'100'
334 with repo.wlock():
334 with repo.wlock(), repo.dirstate.changing_files(repo):
335 335 matcher = scmutil.match(repo[None], pats, opts)
336 336 relative = scmutil.anypats(pats, opts)
337 337 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=relative)
General Comments 0
You need to be logged in to leave comments. Login now