Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG5ba0cf22e4d0: py3: fix kwargs handling in hgext/split.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/split.py (1 line) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Pulkit Goyal | May 19 2018, 8:55 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit |
Repeatedly prompt changes and commit message for new changesets until there | Repeatedly prompt changes and commit message for new changesets until there | ||||
is nothing left in the original changeset. | is nothing left in the original changeset. | ||||
If --rev was not given, split the working directory parent. | If --rev was not given, split the working directory parent. | ||||
By default, rebase connected non-obsoleted descendants onto the new | By default, rebase connected non-obsoleted descendants onto the new | ||||
changeset. Use --no-rebase to avoid the rebase. | changeset. Use --no-rebase to avoid the rebase. | ||||
""" | """ | ||||
opts = pycompat.byteskwargs(opts) | |||||
revlist = [] | revlist = [] | ||||
if opts.get('rev'): | if opts.get('rev'): | ||||
revlist.append(opts.get('rev')) | revlist.append(opts.get('rev')) | ||||
revlist.extend(revs) | revlist.extend(revs) | ||||
with repo.wlock(), repo.lock(), repo.transaction('split') as tr: | with repo.wlock(), repo.lock(), repo.transaction('split') as tr: | ||||
revs = scmutil.revrange(repo, revlist or ['.']) | revs = scmutil.revrange(repo, revlist or ['.']) | ||||
if len(revs) > 1: | if len(revs) > 1: | ||||
raise error.Abort(_('cannot split multiple revisions')) | raise error.Abort(_('cannot split multiple revisions')) |