equal
deleted
inserted
replaced
250 ? foo.c |
250 ? foo.c |
251 |
251 |
252 Returns 0 if all files are successfully added. |
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 m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts)) |
256 m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts)) |
257 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) |
257 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) |
258 rejected = cmdutil.add(ui, repo, m, b"", uipathfn, False, **opts) |
258 rejected = cmdutil.add(ui, repo, m, b"", uipathfn, False, **opts) |
259 return rejected and 1 or 0 |
259 return rejected and 1 or 0 |
260 |
260 |