equal
deleted
inserted
replaced
2088 opts = pycompat.byteskwargs(opts) |
2088 opts = pycompat.byteskwargs(opts) |
2089 if not pats: |
2089 if not pats: |
2090 raise error.Abort(_('no files specified')) |
2090 raise error.Abort(_('no files specified')) |
2091 |
2091 |
2092 m = scmutil.match(repo[None], pats, opts) |
2092 m = scmutil.match(repo[None], pats, opts) |
2093 dryrun = opts.get(r'dry_run') |
2093 dryrun = opts.get('dry_run') |
2094 rejected = cmdutil.forget(ui, repo, m, prefix="", |
2094 rejected = cmdutil.forget(ui, repo, m, prefix="", |
2095 explicitonly=False, dryrun=dryrun)[0] |
2095 explicitonly=False, dryrun=dryrun)[0] |
2096 return rejected and 1 or 0 |
2096 return rejected and 1 or 0 |
2097 |
2097 |
2098 @command( |
2098 @command( |