mercurial/commands.py
changeset 41650 f8b18583049f
parent 41635 446e1dcc3b5c
child 41651 b2df5dc3ebfb
equal deleted inserted replaced
41649:799e156785f7 41650:f8b18583049f
   178 
   178 
   179     Returns 0 if all files are successfully added.
   179     Returns 0 if all files are successfully added.
   180     """
   180     """
   181 
   181 
   182     m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts))
   182     m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts))
   183     rejected = cmdutil.add(ui, repo, m, "", False, **opts)
   183     uipathfn = scmutil.getuipathfn(repo, forcerelativevalue=True)
       
   184     rejected = cmdutil.add(ui, repo, m, "", uipathfn, False, **opts)
   184     return rejected and 1 or 0
   185     return rejected and 1 or 0
   185 
   186 
   186 @command('addremove',
   187 @command('addremove',
   187     similarityopts + subrepoopts + walkopts + dryrunopts,
   188     similarityopts + subrepoopts + walkopts + dryrunopts,
   188     _('[OPTION]... [FILE]...'),
   189     _('[OPTION]... [FILE]...'),