mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
7316194bdf
Since graphlog is in core, we can use 'hg log -G' instead.
56 lines
688 B
Perl
56 lines
688 B
Perl
$ cat >> $HGRCPATH <<EOF
|
|
> [extensions]
|
|
> rebase=
|
|
>
|
|
> [alias]
|
|
> tglog = log -G --template "{rev}: '{desc}' {branches}\n"
|
|
> EOF
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
$ echo A > a
|
|
$ echo >> a
|
|
$ hg ci -Am A
|
|
adding a
|
|
|
|
$ echo B > a
|
|
$ echo >> a
|
|
$ hg ci -m B
|
|
|
|
$ echo C > a
|
|
$ echo >> a
|
|
$ hg ci -m C
|
|
|
|
$ hg up -q -C 0
|
|
|
|
$ echo D >> a
|
|
$ hg ci -Am AD
|
|
created new head
|
|
|
|
$ hg tglog
|
|
@ 3: 'AD'
|
|
|
|
|
| o 2: 'C'
|
|
| |
|
|
| o 1: 'B'
|
|
|/
|
|
o 0: 'A'
|
|
|
|
$ hg rebase -s 1 -d 3
|
|
merging a
|
|
merging a
|
|
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-backup.hg (glob)
|
|
|
|
$ hg tglog
|
|
o 3: 'C'
|
|
|
|
|
o 2: 'B'
|
|
|
|
|
@ 1: 'AD'
|
|
|
|
|
o 0: 'A'
|
|
|
|
|
|
$ cd ..
|