Read about our upcoming Code of Conduct on this issue

Commit 12f300df authored by Pierre-Yves David's avatar Pierre-Yves David 🐙
Browse files

split: add support for the -D and -U option

parent a9ea16a1f4dc
......@@ -129,6 +129,7 @@ Changelog
- uncommit: add support for --current-date and --current-user option
- fold: add support for --current-date and --current-user option
- metaedit: add support for --current-date and --current-user option
- split add support for --current-date and --current-user option
- topic: add --age option to sort topic by the most recently touched,
- topic: add a 't0' to access the root of a topic while keeping it active,
......
......@@ -758,7 +758,7 @@ def cmdprune(ui, repo, *revs, **opts):
@eh.command(
'^split',
[('r', 'rev', [], _("revision to split")),
] + commitopts + commitopts2,
] + commitopts + commitopts2 + commitopts3,
_('hg split [OPTION]... [-r] REV'))
def cmdsplit(ui, repo, *revs, **opts):
"""split a changeset into smaller changesets
......@@ -768,6 +768,7 @@ def cmdsplit(ui, repo, *revs, **opts):
Use --rev to split a given changeset instead.
"""
_resolveoptions(ui, opts)
tr = wlock = lock = None
newcommits = []
......
......@@ -399,9 +399,18 @@ Add topic to the hgrc
$ echo babar > babar
$ echo celeste > celeste
$ hg add babar celeste
$ hg commit -m "Works on mytopic" babar celeste
$ hg commit -m "Works on mytopic" babar celeste --user victor
$ hg log -r .
changeset: 21:26f72cfaf036
branch: new-branch
tag: tip
topic: mytopic
user: victor
date: Thu Jan 01 00:00:00 1970 +0000
summary: Works on mytopic
$ hg summary
parent: 21:0a160c9fe1dd tip
parent: 21:26f72cfaf036 tip
Works on mytopic
branch: new-branch
commit: 2 unknown (clean)
......@@ -411,7 +420,7 @@ Add topic to the hgrc
Split it
$ hg split << EOF
$ hg split -U << EOF
> Y
> Y
> N
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment