##// END OF EJS Templates
dirstate: use `dirstate.change_files` to scope the change in `automv`...
marmoute -
r50938:5cfc4835 default
parent child Browse files
Show More
@@ -73,7 +73,13 b' def mvcheck(orig, ui, repo, *pats, **opt'
73
73
74 with repo.wlock():
74 with repo.wlock():
75 if renames is not None:
75 if renames is not None:
76 scmutil._markchanges(repo, (), (), renames)
76 with repo.dirstate.changing_files(repo):
77 # XXX this should be wider and integrated with the commit
78 # transaction. At the same time as we do the `addremove` logic
79 # for commit. However we can't really do better with the
80 # current extension structure, and this is not worse than what
81 # happened before.
82 scmutil._markchanges(repo, (), (), renames)
77 return orig(ui, repo, *pats, **pycompat.strkwargs(opts))
83 return orig(ui, repo, *pats, **pycompat.strkwargs(opts))
78
84
79
85
General Comments 0
You need to be logged in to leave comments. Login now