202 rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'), |
202 rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'), |
203 opts.get('subrepos'), prefix="", explicitonly=False) |
203 opts.get('subrepos'), prefix="", explicitonly=False) |
204 return rejected and 1 or 0 |
204 return rejected and 1 or 0 |
205 |
205 |
206 @command('addremove', |
206 @command('addremove', |
207 similarityopts + walkopts + dryrunopts, |
207 similarityopts + subrepoopts + walkopts + dryrunopts, |
208 _('[OPTION]... [FILE]...'), |
208 _('[OPTION]... [FILE]...'), |
209 inferrepo=True) |
209 inferrepo=True) |
210 def addremove(ui, repo, *pats, **opts): |
210 def addremove(ui, repo, *pats, **opts): |
211 """add all new files, delete all missing files |
211 """add all new files, delete all missing files |
212 |
212 |