diff --git a/tests/test-sparse-rebase.t b/tests/test-sparse-rebase.t new file mode 100644 --- /dev/null +++ b/tests/test-sparse-rebase.t @@ -0,0 +1,30 @@ + $ hg init repo + $ cd repo + $ cat > .hg/hgrc < [extensions] + > sparse=$TESTDIR/../hgext3rd/fbsparse.py + > dragdag=$RUNTESTDIR/drawdag.py + > rebase= + > EOF + +Run diff. This should still show the file contents of excluded files (and should not crash). + + $ hg debugdrawdag <<'EOS' + > D + > | + > B C + > |/ + > A + > EOS + + $ hg sparse --exclude A B C D E + $ hg update A -q + $ printf D > D + $ echo 2 > E + $ hg rebase -s C -d B + rebasing 2:dc0947a82db8 "C" (C) + temporarily included 1 file(s) in the sparse checkout for merging + cleaned up 1 temporarily added file(s) from the sparse checkout + rebasing 3:e7b3f00ed42e "D" (D tip) + abort: D@bbfdd6cb49aa: not found in manifest! + [255]