2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2018-07-23 22:51:51 +03:00
|
|
|
$ . "$TESTDIR/hgsql/library.sh"
|
2020-01-20 13:42:49 +03:00
|
|
|
$ disable treemanifest
|
2018-07-23 22:51:51 +03:00
|
|
|
|
|
|
|
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:"
|
2020-07-02 23:11:57 +03:00
|
|
|
*CorruptionException: tip doesn't match after sync (self: 2, fetchend: -1) (glob)
|
2018-07-23 22:51:51 +03:00
|
|
|
|
|
|
|
|
2018-07-23 22:51:53 +03:00
|
|
|
Fix the server using sqlrefill.
|
2018-07-23 22:51:51 +03:00
|
|
|
|
|
|
|
$ hg sqlrefill --i-know-what-i-am-doing 0
|
2018-07-23 22:51:53 +03:00
|
|
|
$ hg log -GT '{files}'
|
|
|
|
@ r
|
2020-10-20 03:05:23 +03:00
|
|
|
│
|
|
|
|
│ o q
|
|
|
|
├─╯
|
2018-07-23 22:51:53 +03:00
|
|
|
o p
|
|
|
|
|
2018-07-23 22:51:55 +03:00
|
|
|
|
|
|
|
|
2018-07-23 22:51:57 +03:00
|
|
|
Make another commit to the server to verify that repository state is sane after
|
|
|
|
the refill.
|
2018-07-23 22:51:55 +03:00
|
|
|
|
|
|
|
$ echo s > s
|
2018-07-23 22:51:57 +03:00
|
|
|
$ hg commit -qAm s
|
|
|
|
$ hg log -GT '{files}'
|
|
|
|
@ s
|
2020-10-20 03:05:23 +03:00
|
|
|
│
|
2018-07-23 22:51:57 +03:00
|
|
|
o r
|
2020-10-20 03:05:23 +03:00
|
|
|
│
|
|
|
|
│ o q
|
|
|
|
├─╯
|
2018-07-23 22:51:57 +03:00
|
|
|
o p
|
|
|
|
|