Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGdda49ec2b54a: fix: use cmdutil.check_at_most_one_arg()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
pulkit |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | hgext/fix.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
ee00abb25d89 | d09befb33757 | Martin von Zweigbergk | Dec 12 2019, 6:51 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
directory will update to the replacement revision. | directory will update to the replacement revision. | ||||
When determining what lines of each file to fix at each revision, the whole | When determining what lines of each file to fix at each revision, the whole | ||||
set of revisions being fixed is considered, so that fixes to earlier | set of revisions being fixed is considered, so that fixes to earlier | ||||
revisions are not forgotten in later ones. The --base flag can be used to | revisions are not forgotten in later ones. The --base flag can be used to | ||||
override this default behavior, though it is not usually desirable to do so. | override this default behavior, though it is not usually desirable to do so. | ||||
""" | """ | ||||
opts = pycompat.byteskwargs(opts) | opts = pycompat.byteskwargs(opts) | ||||
cmdutil.check_unique_argument(opts, b'all', b'rev') | |||||
if opts[b'all']: | if opts[b'all']: | ||||
if opts[b'rev']: | |||||
raise error.Abort(_(b'cannot specify both "--rev" and "--all"')) | |||||
opts[b'rev'] = [b'not public() and not obsolete()'] | opts[b'rev'] = [b'not public() and not obsolete()'] | ||||
opts[b'working_dir'] = True | opts[b'working_dir'] = True | ||||
with repo.wlock(), repo.lock(), repo.transaction(b'fix'): | with repo.wlock(), repo.lock(), repo.transaction(b'fix'): | ||||
revstofix = getrevstofix(ui, repo, opts) | revstofix = getrevstofix(ui, repo, opts) | ||||
basectxs = getbasectxs(repo, opts, revstofix) | basectxs = getbasectxs(repo, opts, revstofix) | ||||
workqueue, numitems = getworkqueue( | workqueue, numitems = getworkqueue( | ||||
ui, repo, pats, opts, revstofix, basectxs | ui, repo, pats, opts, revstofix, basectxs | ||||
) | ) |