Show More
@@ -252,7 +252,7 b' def add(ui, repo, *pats, **opts):' | |||
|
252 | 252 | Returns 0 if all files are successfully added. |
|
253 | 253 | """ |
|
254 | 254 | |
|
255 | with repo.wlock(): | |
|
255 | with repo.wlock(), repo.dirstate.changing_files(repo): | |
|
256 | 256 | m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts)) |
|
257 | 257 | uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) |
|
258 | 258 | rejected = cmdutil.add(ui, repo, m, b"", uipathfn, False, **opts) |
General Comments 0
You need to be logged in to leave comments.
Login now