Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG287556e71f85: export: 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 | mercurial/commands.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
c67ca9e705e0 | 1632e1df08de | Martin von Zweigbergk | Dec 12 2019, 6:48 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 |
hg export -r "outgoing()" -o "%n-%m.patch" | hg export -r "outgoing()" -o "%n-%m.patch" | ||||
Returns 0 on success. | Returns 0 on success. | ||||
""" | """ | ||||
opts = pycompat.byteskwargs(opts) | opts = pycompat.byteskwargs(opts) | ||||
bookmark = opts.get(b'bookmark') | bookmark = opts.get(b'bookmark') | ||||
changesets += tuple(opts.get(b'rev', [])) | changesets += tuple(opts.get(b'rev', [])) | ||||
if bookmark and changesets: | cmdutil.check_unique_argument(opts, b'rev', b'bookmark') | ||||
raise error.Abort(_(b"-r and -B are mutually exclusive")) | |||||
if bookmark: | if bookmark: | ||||
if bookmark not in repo._bookmarks: | if bookmark not in repo._bookmarks: | ||||
raise error.Abort(_(b"bookmark '%s' not found") % bookmark) | raise error.Abort(_(b"bookmark '%s' not found") % bookmark) | ||||
revs = scmutil.bookmarkrevs(repo, bookmark) | revs = scmutil.bookmarkrevs(repo, bookmark) | ||||
else: | else: | ||||
if not changesets: | if not changesets: |