Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 41664:16a49c778bde
forget: pass around uipathfn and use instead of m.rel() (API)
Differential Revision: https://phab.mercurial-scm.org/D5911
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 08 Feb 2019 13:08:01 -0800 |
parents | 6a447a3d1bd0 |
children | b81ecf3571d5 |
comparison
equal
deleted
inserted
replaced
41663:6a447a3d1bd0 | 41664:16a49c778bde |
---|---|
2256 if not pats: | 2256 if not pats: |
2257 raise error.Abort(_('no files specified')) | 2257 raise error.Abort(_('no files specified')) |
2258 | 2258 |
2259 m = scmutil.match(repo[None], pats, opts) | 2259 m = scmutil.match(repo[None], pats, opts) |
2260 dryrun, interactive = opts.get('dry_run'), opts.get('interactive') | 2260 dryrun, interactive = opts.get('dry_run'), opts.get('interactive') |
2261 rejected = cmdutil.forget(ui, repo, m, prefix="", | 2261 uipathfn = scmutil.getuipathfn(repo, forcerelativevalue=True) |
2262 rejected = cmdutil.forget(ui, repo, m, prefix="", uipathfn=uipathfn, | |
2262 explicitonly=False, dryrun=dryrun, | 2263 explicitonly=False, dryrun=dryrun, |
2263 interactive=interactive)[0] | 2264 interactive=interactive)[0] |
2264 return rejected and 1 or 0 | 2265 return rejected and 1 or 0 |
2265 | 2266 |
2266 @command( | 2267 @command( |