mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +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
30 lines
356 B
Perl
30 lines
356 B
Perl
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> absorb=
|
|
> EOF
|
|
|
|
$ hg init
|
|
$ hg debugdrawdag <<'EOS'
|
|
> C
|
|
> |
|
|
> B
|
|
> |
|
|
> A
|
|
> EOS
|
|
|
|
$ hg phase -r A --public -q
|
|
$ hg phase -r C --secret --force -q
|
|
|
|
$ hg update C -q
|
|
$ printf B1 > B
|
|
|
|
$ hg absorb -q
|
|
|
|
$ hg log -G -T '{desc} {phase}'
|
|
@ C secret
|
|
|
|
|
o B draft
|
|
|
|
|
o A public
|
|
|