mercurial/commands.py
changeset 23538 ccfb56450f21
parent 23537 f1b06a8aad42
child 23547 21446f4d5c62
equal deleted inserted replaced
23537:f1b06a8aad42 23538:ccfb56450f21
   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