comparison tests/test-rebase-dest.t @ 35287:3398603c5621

rebase: enable multidest by default This was intended to be done by D470. But there was a minor documentation issue. The feature is quite usable now so it gets formally documented and enabled. There is no behavior change for people not using the `SRC` or `ALLSRC` in rebase destination revset. .. feature:: Rebase with different destination per source revision Previously, rebase only supports one unique destination. Now ``SRC`` and ``ALLSRC`` can be used in rebase destination revset to precisely define destination per each individual source revision. For example, the following command could move some orphaned changesets to reasonable new places so they become no longer orphaned:: hg rebase -r 'orphan()-obsolete()' -d 'max((successors(max(roots(ALLSRC) & ::SRC)^)-obsolete())::)' Differential Revision: https://phab.mercurial-scm.org/D1063
author Jun Wu <quark@fb.com>
date Fri, 13 Oct 2017 14:08:14 -0700
parents a0100f34e20b
children 469b06b4c3ca
comparison
equal deleted inserted replaced
35286:307b1689e3f8 35287:3398603c5621
113 > [alias] 113 > [alias]
114 > tglog = log -G --template "{rev}: {desc} {instabilities}" -r 'sort(all(), topo)' 114 > tglog = log -G --template "{rev}: {desc} {instabilities}" -r 'sort(all(), topo)'
115 > [extensions] 115 > [extensions]
116 > maprevset=$TESTTMP/maprevset.py 116 > maprevset=$TESTTMP/maprevset.py
117 > [experimental] 117 > [experimental]
118 > rebase.multidest=true
119 > evolution=true 118 > evolution=true
120 > EOF 119 > EOF
121 120
122 $ rebasewithdag() { 121 $ rebasewithdag() {
123 > N=`$PYTHON -c "print($N+1)"` 122 > N=`$PYTHON -c "print($N+1)"`