@@ -134,37 +134,23 @@ Setup git repo A
134
134
135
135
Import repos in reverse dependency order, C, B then A.
136
136
137
- $ REPOID= " $ REPO_C_ID" with_stripped_logs gitimport " $ GIT_REPO_C" full-repo
138
- using repo " repo_c" repoid RepositoryId(2 )
139
- GitRepo: $ TESTTMP / git-repo-c commit 1 of 2 - Oid: 7 f760d81 => Bid: 801 df9a4
140
- GitRepo: $ TESTTMP / git-repo-c commit 2 of 2 - Oid: 114 b61ca => Bid: 6705887 d
141
- Ref: " refs/heads/master" : Some(ChangesetId(Blake2(6705887 de3a8cc55e6f13cc68a2a3536981cfd7ae86b1493e9ce1e00f8cbad61)))
142
-
143
- $ REPOID= " $ REPO_B_ID" with_stripped_logs gitimport " $ GIT_REPO_B" full-repo
144
- using repo " repo_b" repoid RepositoryId(3 )
145
- GitRepo: $ TESTTMP / git-repo-b commit 1 of 3 - Oid: 1 c7ecd42 => Bid: 28470 d51
146
- GitRepo: $ TESTTMP / git-repo-b commit 2 of 3 - Oid: b7dc5d8f => Bid: 80 a511a4
147
- GitRepo: $ TESTTMP / git-repo-b commit 3 of 3 - Oid: 776166 f1 => Bid: 7 d91c579
148
- Ref: " refs/heads/master" : Some(ChangesetId(Blake2(7 d91c579c7001a246e1b4fe30fa6c1cac45e73b5b3c191cd063a36b25acb8fd4)))
149
-
150
- $ REPOID= " $ SMALL_REPO_ID" with_stripped_logs gitimport " $ GIT_REPO_A" full-repo 2 > &1 | tee $ TESTTMP / gitimport_output
151
- using repo " small_repo" repoid RepositoryId(1 )
152
- GitRepo: $ TESTTMP / git-repo-a commit 1 of 3 - Oid: 37661687 => Bid: 117 dc237
153
- GitRepo: $ TESTTMP / git-repo-a commit 2 of 3 - Oid: 7 d814e13 => Bid: cf1a5d22
154
- GitRepo: $ TESTTMP / git-repo-a commit 3 of 3 - Oid: 9 d737ebe => Bid: d94c6c31
155
- Ref: " refs/heads/master" : Some(ChangesetId(Blake2(d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea)))
137
+ $ REPOID= " $ REPO_C_ID" quiet gitimport " $ GIT_REPO_C" full-repo
138
+
139
+ $ REPOID= " $ REPO_B_ID" quiet gitimport " $ GIT_REPO_B" full-repo
140
+
141
+ $ REPOID= " $ SMALL_REPO_ID" with_stripped_logs gitimport " $ GIT_REPO_A" full-repo > $ TESTTMP / gitimport_output
156
142
157
143
$ GIT_REPO_A_HEAD= $ (rg " .*Ref: \" refs/heads/master\" : Some\(ChangesetId\(Blake2\((\w+).+" -or ' $1' $ TESTTMP / gitimport_output)
158
144
159
145
$ with_stripped_logs mononoke_x_repo_sync " $ SMALL_REPO_ID" " $ LARGE_REPO_ID" initial-import \
160
146
> -- no-progress-bar -i " $ GIT_REPO_A_HEAD" \
161
147
> -- version-name " $ LATEST_CONFIG_VERSION_NAME" 2 > &1 | tee $ TESTTMP / initial_import_output
162
148
Starting session with id * (glob)
163
- Checking if d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea is already synced 1 -> 0
164
- syncing d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea
165
- Found 3 unsynced ancestors
166
- changeset d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea synced as dadbe354a32b6e23625871377f1594f67e8b9debffa8a5e8290b23f39ce37de3 in * (glob)
167
- successful sync of head d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea
149
+ Checking if * (glob)
150
+ syncing * (glob)
151
+ Found * unsynced ancestors (glob)
152
+ changeset * synced as * in * (glob)
153
+ successful sync of head * (glob)
168
154
169
155
$ SYNCED_HEAD= $ (rg " .+synced as (\w+) in.+" -or ' $1' $ TESTTMP / initial_import_output)
170
156
$ echo $ SYNCED_HEAD
@@ -263,30 +249,11 @@ Update those changes in repo A
263
249
3766168 Add root_file
264
250
265
251
266
- $ REPOID= " $ REPO_C_ID" with_stripped_logs gitimport " $ GIT_REPO_C" full-repo
267
- using repo " repo_c" repoid RepositoryId(2 )
268
- GitRepo: $ TESTTMP / git-repo-c commit 1 of 4 - Oid: 7 f760d81 => Bid: 801 df9a4 (already exists )
269
- GitRepo: $ TESTTMP / git-repo-c commit 2 of 4 - Oid: 114 b61ca => Bid: 6705887 d (already exists )
270
- GitRepo: $ TESTTMP / git-repo-c commit 3 of 4 - Oid: 55e83088 => Bid: 016 a8e67
271
- GitRepo: $ TESTTMP / git-repo-c commit 4 of 4 - Oid: 810 d4f53 => Bid: faec21d1
272
- Ref: " refs/heads/master" : Some(ChangesetId(Blake2(faec21d11740ef4c783254dbe148581c849d895beeb3fb31fba802dc2f117670)))
273
-
274
- $ REPOID= " $ REPO_B_ID" with_stripped_logs gitimport " $ GIT_REPO_B" full-repo
275
- using repo " repo_b" repoid RepositoryId(3 )
276
- GitRepo: $ TESTTMP / git-repo-b commit 1 of 4 - Oid: 1 c7ecd42 => Bid: 28470 d51 (already exists )
277
- GitRepo: $ TESTTMP / git-repo-b commit 2 of 4 - Oid: b7dc5d8f => Bid: 80 a511a4 (already exists )
278
- GitRepo: $ TESTTMP / git-repo-b commit 3 of 4 - Oid: 776166 f1 => Bid: 7 d91c579 (already exists )
279
- GitRepo: $ TESTTMP / git-repo-b commit 4 of 4 - Oid: c9e21855 => Bid: a24bd25f
280
- Ref: " refs/heads/master" : Some(ChangesetId(Blake2(a24bd25f90f09c07e07f71897e05ae2bba16c94a5e351b2b9291f89bb782cf36)))
281
-
282
- $ REPOID= " $ SMALL_REPO_ID" with_stripped_logs gitimport " $ GIT_REPO_A" full-repo | tee $ TESTTMP / gitimport_output
283
- using repo " small_repo" repoid RepositoryId(1 )
284
- GitRepo: $ TESTTMP / git-repo-a commit 1 of 5 - Oid: 37661687 => Bid: 117 dc237 (already exists )
285
- GitRepo: $ TESTTMP / git-repo-a commit 2 of 5 - Oid: 7 d814e13 => Bid: cf1a5d22 (already exists )
286
- GitRepo: $ TESTTMP / git-repo-a commit 3 of 5 - Oid: 9 d737ebe => Bid: d94c6c31 (already exists )
287
- GitRepo: $ TESTTMP / git-repo-a commit 4 of 5 - Oid: ef545462 => Bid: 9 de5e77a
288
- GitRepo: $ TESTTMP / git-repo-a commit 5 of 5 - Oid: 6 d5b3867 => Bid: 990 ba786
289
- Ref: " refs/heads/master" : Some(ChangesetId(Blake2(990 ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f)))
252
+ $ REPOID= " $ REPO_C_ID" quiet gitimport " $ GIT_REPO_C" full-repo
253
+
254
+ $ REPOID= " $ REPO_B_ID" quiet gitimport " $ GIT_REPO_B" full-repo
255
+
256
+ $ REPOID= " $ SMALL_REPO_ID" with_stripped_logs gitimport " $ GIT_REPO_A" full-repo > $ TESTTMP / gitimport_output
290
257
291
258
$ GIT_REPO_A_HEAD= $ (rg " .*Ref: \" refs/heads/master\" : Some\(ChangesetId\(Blake2\((\w+).+" -or ' $1' $ TESTTMP / gitimport_output)
292
259
@@ -295,11 +262,11 @@ Update those changes in repo A
295
262
> -- no-progress-bar -i " $ GIT_REPO_A_HEAD" \
296
263
> -- version-name " $ LATEST_CONFIG_VERSION_NAME" 2 > &1 | tee $ TESTTMP / initial_import_output
297
264
Starting session with id * (glob)
298
- Checking if 990 ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f is already synced 1 -> 0
299
- syncing 990 ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f
300
- Found 2 unsynced ancestors
301
- changeset 990 ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f synced as 647 a2898995b70a69809ba0e83d52aeb153af0217158622429b784d83ed72bc6 in * (glob)
302
- successful sync of head 990 ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f
265
+ Checking if * (glob)
266
+ syncing * (glob)
267
+ Found * unsynced ancestors (glob)
268
+ changeset * synced as * in * (glob)
269
+ successful sync of head * (glob)
303
270
304
271
$ SYNCED_HEAD= $ (rg " .+synced as (\w+) in.+" -or ' $1' $ TESTTMP / initial_import_output)
305
272
$ echo " $ SYNCED_HEAD"
0 commit comments