D1047: tweakdefaults: add restack command
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sun Nov 12 13:18:21 EST 2017
indygreg added a comment.
I'm a bit late to the party. But here are my thoughts.
While I think there should be some "auto stabilize" behavior on `hg rebase`, I also believe there should be a top-level command or alias for recovering orphans. If nothing else, it is because it is a common operation. What that's named, I'm not sure. But the implementation of `hg restack` in this patch does implement that UI primitive.
Whatever we do, the output of commands that create orphans and would benefit from hints to this command. Furthermore, it would be ideal if the terminology agreed. Right now, `hg amend` will print e.g. "2 new orphan changesets." That's it. What verb you can use to bring these "orphans" back into "stable" history, I don't know. "restack" is not exactly intuitive. Neither is "rebase." I think we should come up with a better term than "orphan" - one that has a physical world relationship to whatever we call "restack." I think concepts like "detach" and "stabilize" are more appropriate.
To: quark, #hg-reviewers
Cc: indygreg, durin42, martinvonz, lothiraldan, dlax, mercurial-devel
More information about the Mercurial-devel