D1047: tweakdefaults: add restack command

quark (Jun Wu) phabricator at mercurial-scm.org
Fri Oct 13 17:41:46 EDT 2017


quark added a comment.


  In https://phab.mercurial-scm.org/D1047#17715, @durin42 wrote:
  
  > The only concern I have is that this is pretty complicated to express in a revset, but if we can figure it out that's almost certainly the way to go...
  
  
  If this is the only concern, how about defining a `_deststabilize(src, allsrc)` revset in `rebase`? (since we already have `_destrebase` for now) Then the user-facing revset could be shorter. This solves extra problems, like we can do extra work to handle the divergence case, and do some caching to improve performance on huge repos in the revset implementation.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1047

To: quark, #hg-reviewers
Cc: durin42, martinvonz, lothiraldan, dlax, mercurial-devel


More information about the Mercurial-devel mailing list