diff -r 799e156785f7 -r f8b18583049f mercurial/commands.py --- a/mercurial/commands.py Fri Feb 08 10:32:48 2019 -0800 +++ b/mercurial/commands.py Thu Feb 07 11:15:30 2019 -0800 @@ -180,7 +180,8 @@ """ m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts)) - rejected = cmdutil.add(ui, repo, m, "", False, **opts) + uipathfn = scmutil.getuipathfn(repo, forcerelativevalue=True) + rejected = cmdutil.add(ui, repo, m, "", uipathfn, False, **opts) return rejected and 1 or 0 @command('addremove',