2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2017-11-21 00:56:55 +03:00
|
|
|
$ hg init repo
|
|
|
|
$ cd repo
|
2020-01-20 13:42:49 +03:00
|
|
|
$ enable sparse rebase
|
2017-11-21 00:56:55 +03:00
|
|
|
|
|
|
|
$ 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
|
2019-10-16 02:28:01 +03:00
|
|
|
rebasing dc0947a82db8 "C" (C)
|
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
|
2019-12-18 00:45:17 +03:00
|
|
|
rebasing e7b3f00ed42e "D" (D)
|
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
|