[Bug 5264] New: `hg split` should check for public phase early
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Wed Jun 8 20:09:38 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5264
Bug ID: 5264
Summary: `hg split` should check for public phase early
Product: Mercurial
Version: unspecified
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: evolution
Assignee: bugzilla at selenic.com
Reporter: hg at pewpew.net
CC: mercurial-devel at selenic.com,
pierre-yves.david at ens-lyon.org
`hg split` lets me get all the way through splitting a changeset before telling
me that it can't obsolete public phase commits. It should probably check if
the commit being split is public phase before proceeding.
> hg init .
> echo hi > foo
> echo bye > bar
> hg ci -Am 'foo and bar'
adding bar
adding foo
> hg phase -p .
> hg xl
@ 0:a98d5336 spectral tip
foo and bar
> HGRCPATH=/dev/null hg --config ui.username='kyle' --config extensions.evolve=$HOME/src/hg/mutable-history/hgext/evolve.py split
0 files updated, 0 files merged, 2 files removed, 0 files unresolved
adding bar
adding foo
diff --git a/bar b/bar
new file mode 100644
examine changes to 'bar'? [Ynesfdaq?] y
@@ -0,0 +1,1 @@
+bye
record change 1/2 to 'bar'? [Ynesfdaq?] y
diff --git a/foo b/foo
new file mode 100644
examine changes to 'foo'? [Ynesfdaq?] n
created new head
Done splitting? [yN] y
transaction abort!
rollback completed
abort: cannot obsolete public changeset: a98d53361f1e
(see "hg help phases" for details)
> hg xl
@ 0:a98d5336 spectral tip
foo and bar
Version information:
> hg --version
Mercurial Distributed SCM (version 3.8.1+37-983353035cec)
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-2016 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> hg -R $HOME/src/hg/mutable-history summary
parent: 1711:7a2e0629bdee
inhibit: protect agains dropped 'bmstore.write'
branch: stable
bookmarks: @
commit: (clean)
update: (current)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list