mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +03:00
75a8173a10
Summary: Add `#chg-compatible` to 572 tests that seem to pass with chg enabled. This should make them run faster. Reviewed By: xavierd Differential Revision: D18870507 fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
60 lines
948 B
Perl
60 lines
948 B
Perl
#chg-compatible
|
|
|
|
$ . "$TESTDIR/hgsql/library.sh"
|
|
$ setconfig extensions.treemanifest=!
|
|
|
|
Populate the db with an initial commit.
|
|
|
|
$ initclient client
|
|
$ cd client
|
|
$ echo p > p
|
|
$ hg commit -qAm p
|
|
$ echo q > q
|
|
$ hg commit -qAm q
|
|
$ hg -q up 0
|
|
$ echo r > r
|
|
$ hg commit -qAm r
|
|
$ hg bookmark foo
|
|
$ cd ..
|
|
|
|
|
|
Create master without sql configuration.
|
|
|
|
$ hg clone -q client master
|
|
|
|
|
|
Configure master as a server backed by sql.
|
|
|
|
$ configureserver master masterrepo
|
|
$ cd master
|
|
$ hg log -GT '{files}' 2>&1 | grep "CorruptionException:"
|
|
CorruptionException: heads don't match after sync
|
|
|
|
|
|
Fix the server using sqlrefill.
|
|
|
|
$ hg sqlrefill --i-know-what-i-am-doing 0
|
|
$ hg log -GT '{files}'
|
|
@ r
|
|
|
|
|
| o q
|
|
|/
|
|
o p
|
|
|
|
|
|
|
|
Make another commit to the server to verify that repository state is sane after
|
|
the refill.
|
|
|
|
$ echo s > s
|
|
$ hg commit -qAm s
|
|
$ hg log -GT '{files}'
|
|
@ s
|
|
|
|
|
o r
|
|
|
|
|
| o q
|
|
|/
|
|
o p
|
|
|