sapling/tests/test-sparse-rebase.t
Kostia Balytskyi 650abf4b9e tests: stop importing sparse from an explicit python file
Summary:
Importing anything from python files with explicit breaks embedded
aproach we use on Windows.

For one of the tests, I did add `hg debugshell -c "from hgext import sparse;
print sparse.__file__` just to make sure the same file is used in practice.

Reviewed By: singhsrb

Differential Revision: D13258984

fbshipit-source-id: 4c86e1dccfd4f525a14019dc4b9586d798f2bffe
2018-11-30 02:19:16 -08:00

28 lines
627 B
Perl

$ hg init repo
$ cd repo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=
> rebase=
> EOF
$ 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)
temporarily included 1 file(s) in the sparse checkout for merging
cleaned up 1 temporarily added file(s) from the sparse checkout