sapling/eden/scm/tests/test-histedit-reorder.t
Jun Wu 89eb6520d2 scmutil: remove meaningfulparents
Summary:
The "meaningfulparents" concept is coupled with rev numbers.
Remove it. This changes default templates to not show parents, and `{parents}`
template to show parents.

Reviewed By: DurhamG

Differential Revision: D23408970

fbshipit-source-id: f1a8060122ee6655d9f64147b35a321af839266e
2020-09-05 15:06:44 -07:00

71 lines
1.7 KiB
Raku

#require fsmonitor
$ . "$TESTDIR/histedit-helpers.sh"
$ enable histedit fsmonitor rebase hgevents sparse
$ setconfig fsmonitor.warn-fresh-instance=true
$ newrepo
$ hg status --debug
warning: watchman has recently started (pid *) - operation will be slower than usual (glob)
poststatusfixup decides to wait for wlock since watchman reported fresh instance
$ drawdag << 'EOS'
> D
> |
> C
> |
> B
> |
> A
> EOS
$ hg log --graph
o commit: f585351a92f8
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: D
|
o commit: 26805aba1e60
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: C
|
o commit: 112478962961
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: B
|
o commit: 426bada5c675
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: A
$ hg sparse include B C D
$ hg co $D
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg histedit 112478962961 --commands - 2>&1 << EOF | fixbundle
> pick 26805aba1e60 C
> pick 112478962961 B
> pick f585351a92f8 D
> EOF
$ hg log --graph
@ commit: ded77c342953
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: D
|
o commit: 508221a61cea
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: B
|
o commit: 088d21ab9b28
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: C
|
o commit: 426bada5c675
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: A