mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
48d3c33411
Summary: Microwave doesn't normally allow writes, which can cause cache warmup to fail if master has underived commits. So, let's go back in bookmarks history to whatever is most recent and derived. We can do so using the existing logic we use in the warm bookmarks cache. Reviewed By: farnz Differential Revision: D21325485 fbshipit-source-id: 11e758cd512a22e02704ac34458fead18c284c20
36 lines
1.2 KiB
Perl
36 lines
1.2 KiB
Perl
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License found in the LICENSE file in the root
|
|
# directory of this source tree.
|
|
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
|
|
setup configuration
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
$ BLOB_TYPE="blob_files" default_setup
|
|
hg repo
|
|
o C [draft;rev=2;26805aba1e60]
|
|
|
|
|
o B [draft;rev=1;112478962961]
|
|
|
|
|
o A [draft;rev=0;426bada5c675]
|
|
$
|
|
blobimporting
|
|
starting Mononoke
|
|
cloning repo in hg client 'repo2'
|
|
|
|
backfill derived data
|
|
$ DERIVED_DATA_TYPE="fsnodes"
|
|
$ backfill_derived_data prefetch-commits --out-filename "$TESTTMP/prefetched_commits"
|
|
* using repo "repo" repoid RepositoryId(0) (glob)
|
|
|
|
$ backfill_derived_data backfill --prefetched-commits-path "$TESTTMP/prefetched_commits" "$DERIVED_DATA_TYPE"
|
|
* using repo "repo" repoid RepositoryId(0) (glob)
|
|
* reading all changesets for: RepositoryId(0) (glob)
|
|
* starting deriving data for 3 changesets (glob)
|
|
* 3/3 estimate:* speed:* mean_speed:* (glob)
|
|
|
|
$ mononoke_admin --log-level ERROR derived-data exists "$DERIVED_DATA_TYPE" master_bookmark
|
|
Derived: c3384961b16276f2db77df9d7c874bbe981cf0525bd6f84a502f919044f2dabd
|