Mercurial > hg > evolve
changeset 1636:5a1cfb1160a6
inhibit: update test with new behavior from core
The recent changes in core (to make sure that all bookmarks write are done at
the end of a transaction) changed the behavior of inhibit. When one rebases
a set of hidden revs somewhere, the hidden revs become visible at the end of
the rebase. Both the previous behavior and new behavior seems acceptable but
the tests have to be changed subsequently. This patch modifies one of the test
for inhibit when the case mentioned above happens. We prune the revs inhibited
by the rebase to make the change minimal.
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Tue, 01 Dec 2015 10:25:38 -0800 |
parents | 72f50a177806 |
children | 23a34dce5131 |
files | tests/test-inhibit.t |
diffstat | 1 files changed, 35 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-inhibit.t +++ b/tests/test-inhibit.t @@ -429,6 +429,41 @@ | o 12:fe1634cbe235 add cK | + | o 11:53a94305e133 add cL + | | + | o 10:ad78ff7d621f add cK + | | + | | @ 9:55c73a90e4b4 add cJ + | | | + | | | o 7:18214586bf78 add cJ + | | |/ + | | o 6:cf5c4f4554ce add cH + | | | + | | o 5:5419eb264a33 add cG + | | | + | | o 4:98065434e5c6 add cE + | |/ + o | 3:2db36d8066ff add cD + | | + o | 2:7df62a38b9bf add cC + | | + o | 1:02bcbc3f6e56 add cB + |/ + o 0:54ccbc537fc2 add cA + + +Performing the rebase made ad78ff7d621f and 53a94305e133 visible, we prune +them to make the graph more legible. It used to be the case that directaccess +and inhibit were not making these revisions visible. Both behavior are +acceptable but to keep the test changes minimal we prune those changesets. + + $ hg strip ad78ff7d621f:: + 2 changesets pruned + $ hg log -G + o 13:2f7b7704d714 add cL + | + o 12:fe1634cbe235 add cK + | | @ 9:55c73a90e4b4 add cJ | | | | o 7:18214586bf78 add cJ