##// END OF EJS Templates
tests: finally fix up test-fuzz-targets.t...
tests: finally fix up test-fuzz-targets.t It's been failing on my workstation for a while, since I have a new enough LLVM that I had the fuzzer goo, but not so new that I actually had FuzzedDataProvider. This is a better solution all around in my opinion. I _believe_ this should let us run these tests on most systems, even those using GCC instead of clang. That said, my one attempt to test this on my macOS laptop failed miserably, and I don't feel like doing more work on this right now. Differential Revision: https://phab.mercurial-scm.org/D7566

File last commit:

r34868:7f183c64 default
r44267:19da643d default
Show More
test-rebase-brute-force.t
56 lines | 1.1 KiB | text/troff | Tads3Lexer
/ tests / test-rebase-brute-force.t
Jun Wu
test-rebase: add a brute force test...
r33674 $ cat >> $HGRCPATH <<EOF
> [extensions]
> drawdag=$TESTDIR/drawdag.py
> bruterebase=$TESTDIR/bruterebase.py
> [experimental]
Boris Feld
config: use 'experimental.evolution.create-markers'...
r34867 > evolution.createmarkers=True
Boris Feld
config: use 'experimental.evolution.allowunstable'...
r34868 > evolution.allowunstable=True
Jun Wu
test-rebase: add a brute force test...
r33674 > EOF
$ init() {
> N=`expr ${N:-0} + 1`
> cd $TESTTMP && hg init repo$N && cd repo$N
> hg debugdrawdag
> }
Source looks like "N"
$ init <<'EOS'
> C D
> |\|
> A B Z
> EOS
$ hg debugbruterebase 'all()-Z' Z
A: A':Z
B: B':Z
AB: A':Z B':Z
Jun Wu
rebase: change "result would have 3 parent" error message (BC)...
r33786 C: ABORT: cannot rebase 3:a35c07e8a2a4 without moving at least one of its parents
Jun Wu
test-rebase: add a brute force test...
r33674 AC: A':Z C':A'B
BC: B':Z C':B'A
ABC: A':Z B':Z C':A'B'
D: D':Z
AD: A':Z D':Z
BD: B':Z D':B'
ABD: A':Z B':Z D':B'
Jun Wu
rebase: change "result would have 3 parent" error message (BC)...
r33786 CD: ABORT: cannot rebase 3:a35c07e8a2a4 without moving at least one of its parents
Jun Wu
rebase: rewrite core algorithm (issue5578) (issue5630)...
r33783 ACD: A':Z C':A'B D':Z
Jun Wu
test-rebase: add a brute force test...
r33674 BCD: B':Z C':B'A D':B'
ABCD: A':Z B':Z C':A'B' D':B'
Moving backwards
$ init <<'EOS'
> C
> |\
> A B
> |
> Z
> EOS
$ hg debugbruterebase 'all()-Z' Z
B: B':Z
A:
BA: B':Z
Jun Wu
rebase: change "result would have 3 parent" error message (BC)...
r33786 C: ABORT: cannot rebase 3:b8d7149b562b without moving at least one of its parents
Jun Wu
test-rebase: add a brute force test...
r33674 BC: B':Z C':B'A
AC:
Jun Wu
rebase: rewrite core algorithm (issue5578) (issue5630)...
r33783 BAC: B':Z C':B'A