mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 16:12:23 +03:00
e1c73204f6
Summary: A future diff will remove tags entirely, so let's move drawdag to be bookmark based. Reviewed By: quark-zju Differential Revision: D18995059 fbshipit-source-id: 70ef67259b37ef9821009d0145aa1e03c09b1309
51 lines
667 B
Perl
51 lines
667 B
Perl
#chg-compatible
|
|
|
|
$ cat >> $HGRCPATH <<EOF
|
|
> [extensions]
|
|
> undo=
|
|
> remotenames=
|
|
> extralog=$TESTDIR/extralog.py
|
|
> [experimental]
|
|
> evolution=
|
|
> narrow-heads=true
|
|
> [visibility]
|
|
> enabled=true
|
|
> [mutation]
|
|
> enabled=true
|
|
> date=0 0
|
|
> [ui]
|
|
> interactive = true
|
|
> EOF
|
|
|
|
$ newrepo
|
|
$ drawdag << 'EOS'
|
|
> B
|
|
> |
|
|
> A
|
|
> EOS
|
|
|
|
$ drawdag << 'EOS'
|
|
> C
|
|
> /
|
|
> A
|
|
> EOS
|
|
|
|
$ hg undo
|
|
undone to *, before book -fd A C (glob)
|
|
$ hg undo
|
|
undone to *, before debugdrawdag (glob)
|
|
$ hg log -GT '{desc}'
|
|
o B
|
|
|
|
|
o A
|
|
|
|
$ hg redo
|
|
undone to *, before undo (glob)
|
|
$ hg log -GT '{desc}'
|
|
o C
|
|
|
|
|
| o B
|
|
|/
|
|
o A
|
|
|