mercurial/commands.py
changeset 23885 9994f45ba714
parent 23877 7cc77030c557
child 23888 6d8bebf4d6d4
equal deleted inserted replaced
23884:ec2c2e1400f0 23885:9994f45ba714
   197 
   197 
   198     Returns 0 if all files are successfully added.
   198     Returns 0 if all files are successfully added.
   199     """
   199     """
   200 
   200 
   201     m = scmutil.match(repo[None], pats, opts)
   201     m = scmutil.match(repo[None], pats, opts)
   202     rejected = cmdutil.add(ui, repo, m, opts.get('dry_run'),
   202     rejected = cmdutil.add(ui, repo, m, "", False, **opts)
   203                            opts.get('subrepos'), prefix="", explicitonly=False)
       
   204     return rejected and 1 or 0
   203     return rejected and 1 or 0
   205 
   204 
   206 @command('addremove',
   205 @command('addremove',
   207     similarityopts + subrepoopts + walkopts + dryrunopts,
   206     similarityopts + subrepoopts + walkopts + dryrunopts,
   208     _('[OPTION]... [FILE]...'),
   207     _('[OPTION]... [FILE]...'),