Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG87a6be5b29f4: py3: use '%d' instead of '%s' for integers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
cmdutil.bailifchanged(repo) | cmdutil.bailifchanged(repo) | ||||
if not revs: | if not revs: | ||||
raise error.Abort(_('no revisions specified')) | raise error.Abort(_('no revisions specified')) | ||||
revs = scmutil.revrange(repo, revs) | revs = scmutil.revrange(repo, revs) | ||||
skipped = set() | skipped = set() | ||||
# check for merges | # check for merges | ||||
for rev in repo.revs('%ld and merge()', revs): | for rev in repo.revs('%ld and merge()', revs): | ||||
ui.warn(_('skipping ungraftable merge revision %s\n') % rev) | ui.warn(_('skipping ungraftable merge revision %d\n') % rev) | ||||
skipped.add(rev) | skipped.add(rev) | ||||
revs = [r for r in revs if r not in skipped] | revs = [r for r in revs if r not in skipped] | ||||
if not revs: | if not revs: | ||||
return -1 | return -1 | ||||
# Don't check in the --continue case, in effect retaining --force across | # Don't check in the --continue case, in effect retaining --force across | ||||
# --continues. That's because without --force, any revisions we decided to | # --continues. That's because without --force, any revisions we decided to | ||||
# skip would have been filtered out here, so they wouldn't have made their | # skip would have been filtered out here, so they wouldn't have made their |