# HG changeset patch # User Martin von Zweigbergk # Date 1602889232 25200 # Node ID 09914d934cf4f0dab1649ac677bdd71998dc5d4a # Parent 136a86327316dd511dfa609bc3e6e76cee5e82e6 fix: only check for obsolete commits in the --rev case With both `--all` and `--source`, we already exclude obsolete revisions in the revset, so there's no need to call `checkfixablectx()` in those cases. Differential Revision: https://phab.mercurial-scm.org/D9227 diff -r 136a86327316 -r 09914d934cf4 hgext/fix.py --- a/hgext/fix.py Fri Oct 16 15:02:46 2020 -0700 +++ b/hgext/fix.py Fri Oct 16 16:00:32 2020 -0700 @@ -427,8 +427,8 @@ revs = set(scmutil.revrange(repo, opts[b'rev'])) if opts.get(b'working_dir'): revs.add(wdirrev) - for rev in revs: - checkfixablectx(ui, repo, repo[rev]) + for rev in revs: + checkfixablectx(ui, repo, repo[rev]) # Allow fixing only wdir() even if there's an unfinished operation if not (len(revs) == 1 and wdirrev in revs): cmdutil.checkunfinished(repo)