2017-11-21 00:56:55 +03:00
|
|
|
$ hg init repo
|
|
|
|
$ cd repo
|
|
|
|
$ cat > .hg/hgrc <<EOF
|
|
|
|
> [extensions]
|
2018-01-09 14:06:09 +03:00
|
|
|
> sparse=$TESTDIR/../hgext/fbsparse.py
|
2017-11-21 00:56:55 +03:00
|
|
|
> 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)
|
2017-11-21 00:56:55 +03:00
|
|
|
temporarily included 1 file(s) in the sparse checkout for merging
|
|
|
|
cleaned up 1 temporarily added file(s) from the sparse checkout
|
|
|
|
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/dc0947a82db8-b8481714-rebase.hg (glob)
|