sapling/eden/scm/tests/test-hgext-perfsuite.t
Jun Wu 021fa7eba5 repoview: remove repoview layer
Summary:
End-users have been using visibleheads + narrowheads for a while, and hgsql
does not require any filtering, and most tests are migrated to modern configs
(visibility + narrow heads). Now it's time to consider removing the repoview
layer.

This removes complexities around `changelog.filteredrevs` and various different
`repoview` objects with caching problems (ex. I have seen that `repo` and `unfi`
have inconsistent phasecache causing they calculate phases differently and it's
quite hard to reason about confidently).

This will also make it easier to migrate to segmented changelog.

Reviewed By: DurhamG

Differential Revision: D22201084

fbshipit-source-id: 3661c26dd72a64b5005d86e164af4da5a6895649
2020-07-06 14:04:27 -07:00

100 lines
2.3 KiB
Perl

#require py2
#chg-compatible
$ configure mutation-norecord
#require symlink execbit
$ enable amend perfsuite rebase
$ setconfig perfsuite.rebase.masterdistance=1 perfsuite.immrebase.masterdistance=0
$ setconfig remotefilelog.reponame=test
$ hg init repo1
$ hg -R repo1 debugdrawdag <<'EOS'
> d
> |
> c
> |
> b
> |
> a
> EOS
$ hg book -R repo1 -r d master
$ hg clone repo1 repo2
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg -R repo2 perftestsuite --seed 1 --traceback
ran 'commit' in * sec (glob)
ran 'amend' in * sec (glob)
ran 'status' in * sec (glob)
ran 'revert' in * sec (glob)
ran 'rebase' in * sec (glob)
ran 'immrebase' in * sec (glob)
ran 'pull' in * sec (glob)
--print
$ hg clone repo1 repo3
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg -R repo3 perftestsuite --seed 1 --print
stdout: ? i/s/o/aae
? t/y/c/aag
? u/r/l/aaa
? v/f/r/aab
? v/f/r/aaf
stdout: adding i/s/o/aae
adding t/y/c/aag
adding u/r/l/aaa
adding v/f/r/aab
adding v/f/r/aaf
ran 'commit' in * sec (glob)
stdout: M v/f/r/aab
? m/h/f/aag
? u/r/l/aag
? v/f/r/aaa
? v/f/r/aac
? z/y/x/aae
stdout: adding m/h/f/aag
adding u/r/l/aag
adding v/f/r/aaa
adding v/f/r/aac
adding z/y/x/aae
ran 'amend' in * sec (glob)
stdout: ! u/r/l/aaa
? h/o/v/aag
? i/s/o/aag
? t/y/c/aab
? t/y/c/aaf
ran 'status' in * sec (glob)
stdout: reverting repo3/u/r/l/aaa
ran 'revert' in * sec (glob)
stdout: rebasing b17a0147d61c "test commit"
ran 'rebase' in * sec (glob)
stdout: 1 files updated, 0 files merged, 10 files removed, 0 files unresolved
(activating bookmark master)
stdout: already rebased 20b2121f9781 "test commit"
already rebased b17a0147d61c "test commit"
rebasing f8d4b0697695 "test commit"
ran 'immrebase' in * sec (glob)
stdout: pulling from $TESTTMP/repo1
searching for changes
no changes found
ran 'pull' in * sec (glob)
--profile
$ hg clone repo1 repo4
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg -R repo4 perftestsuite --seed 1 --use-profile --print 2>&1 | grep "Sample count"
Sample count: * (glob)
Sample count: * (glob)