mercurial/commands.py
changeset 41653 16a49c778bde
parent 41652 6a447a3d1bd0
child 41685 b81ecf3571d5
--- a/mercurial/commands.py	Thu Feb 07 23:25:39 2019 -0800
+++ b/mercurial/commands.py	Fri Feb 08 13:08:01 2019 -0800
@@ -2258,7 +2258,8 @@
 
     m = scmutil.match(repo[None], pats, opts)
     dryrun, interactive = opts.get('dry_run'), opts.get('interactive')
-    rejected = cmdutil.forget(ui, repo, m, prefix="",
+    uipathfn = scmutil.getuipathfn(repo, forcerelativevalue=True)
+    rejected = cmdutil.forget(ui, repo, m, prefix="", uipathfn=uipathfn,
                               explicitonly=False, dryrun=dryrun,
                               interactive=interactive)[0]
     return rejected and 1 or 0