equal
deleted
inserted
replaced
2964 |
2964 |
2965 opts = pycompat.byteskwargs(opts) |
2965 opts = pycompat.byteskwargs(opts) |
2966 if not pats: |
2966 if not pats: |
2967 raise error.InputError(_(b'no files specified')) |
2967 raise error.InputError(_(b'no files specified')) |
2968 |
2968 |
2969 with repo.wlock(): |
2969 with repo.wlock(), repo.dirstate.changing_files(repo): |
2970 m = scmutil.match(repo[None], pats, opts) |
2970 m = scmutil.match(repo[None], pats, opts) |
2971 dryrun, interactive = opts.get(b'dry_run'), opts.get(b'interactive') |
2971 dryrun, interactive = opts.get(b'dry_run'), opts.get(b'interactive') |
2972 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) |
2972 uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) |
2973 rejected = cmdutil.forget( |
2973 rejected = cmdutil.forget( |
2974 ui, |
2974 ui, |