mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
96a9afa2a5
Summary: Since we have `debugbuilddag` as a builtin command, and `drawdag` is pretty useful for writing clean test cases. Let's inline it. This would simplify many tests since `drawdag=..." is no longer needed. Reviewed By: DurhamG Differential Revision: D6827925 fbshipit-source-id: b749f57fd5c55b2cb000dd2da2c2f9bc2386a519
29 lines
751 B
Perl
29 lines
751 B
Perl
$ hg init repo
|
|
$ cd repo
|
|
$ cat > .hg/hgrc <<EOF
|
|
> [extensions]
|
|
> sparse=$TESTDIR/../hgext/fbsparse.py
|
|
> 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
|
|
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/dc0947a82db8-b8481714-rebase.hg (glob)
|