# HG changeset patch # User Augie Fackler # Date 1555083693 14400 # Node ID 8890fce7c13de13cb3adfd5db176eca3418c86e9 # Parent bcf59ddc617373368b31669d820f5d1cc22d2832 rebase: demonstrate bug in dry-run mode which causes cycles to not be reported Differential Revision: https://phab.mercurial-scm.org/D6225 diff -r bcf59ddc6173 -r 8890fce7c13d tests/test-rebase-dest.t --- a/tests/test-rebase-dest.t Sat Apr 06 17:48:11 2019 +0200 +++ b/tests/test-rebase-dest.t Fri Apr 12 11:41:33 2019 -0400 @@ -206,6 +206,18 @@ abort: source and destination form a cycle [255] +BUG: cycles aren't flagged correctly when --dry-run is set: + $ rebasewithdag -s B -d 'SRC' --dry-run <<'EOS' + > C + > | + > B + > | + > Z + > EOS + abort: no rebase in progress + starting dry-run rebase; repository will not be changed + [255] + Switch roots: $ rebasewithdag -s 'all() - roots(all())' -d 'roots(all()) - ::SRC' <<'EOS'