equal
deleted
inserted
replaced
172 Returns 0 if all files are successfully added. |
172 Returns 0 if all files are successfully added. |
173 """ |
173 """ |
174 |
174 |
175 m = scmutil.match(repo[None], pats, opts) |
175 m = scmutil.match(repo[None], pats, opts) |
176 rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'), |
176 rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'), |
177 opts.get('subrepos'), prefix="") |
177 opts.get('subrepos'), prefix="", explicitonly=False) |
178 return rejected and 1 or 0 |
178 return rejected and 1 or 0 |
179 |
179 |
180 @command('addremove', |
180 @command('addremove', |
181 similarityopts + walkopts + dryrunopts, |
181 similarityopts + walkopts + dryrunopts, |
182 _('[OPTION]... [FILE]...')) |
182 _('[OPTION]... [FILE]...')) |