comparison tests/test-infinitepush.t @ 37200:8b5d7ef81066

infinitepush: delete infinitepush.fillmetadatabranchpattern config option This patch deletes the config option infinitepush.fillmetadatabranchpattern which if set to true sets a background process which will save metadata in infinitepush index. This series is meant to have a state where we can use it for CI purposes. Differential Revision: https://phab.mercurial-scm.org/D2952
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 27 Mar 2018 18:04:05 +0530
parents c5687ce3b411
children aa015dd92591
comparison
equal deleted inserted replaced
37199:c5687ce3b411 37200:8b5d7ef81066
286 286
287 $ cd ../repo 287 $ cd ../repo
288 $ hg debugfillinfinitepushmetadata --node 09904fb20c53ff351bd3b1d47681f569a4dab7e5 --config infinitepush.metadatafilelimit=2 288 $ hg debugfillinfinitepushmetadata --node 09904fb20c53ff351bd3b1d47681f569a4dab7e5 --config infinitepush.metadatafilelimit=2
289 $ cat .hg/scratchbranches/index/nodemetadatamap/09904fb20c53ff351bd3b1d47681f569a4dab7e5 289 $ cat .hg/scratchbranches/index/nodemetadatamap/09904fb20c53ff351bd3b1d47681f569a4dab7e5
290 {"changed_files": {"file": {"adds": 1, "isbinary": false, "removes": 0, "status": "added"}, "file1": {"adds": 1, "isbinary": false, "removes": 0, "status": "added"}}, "changed_files_truncated": true} (no-eol) 290 {"changed_files": {"file": {"adds": 1, "isbinary": false, "removes": 0, "status": "added"}, "file1": {"adds": 1, "isbinary": false, "removes": 0, "status": "added"}}, "changed_files_truncated": true} (no-eol)
291
292 Test infinitepush.fillmetadatabranchpattern
293 $ cd ../repo
294 $ cat >> .hg/hgrc << EOF
295 > [infinitepush]
296 > fillmetadatabranchpattern=re:scratch/fillmetadata/.*
297 > EOF
298 $ cd ../client
299 $ echo tofillmetadata > tofillmetadata
300 $ hg ci -Aqm "tofillmetadata"
301 $ hg log -r . -T '{node}\n'
302 d2b0410d4da084bc534b1d90df0de9eb21583496
303 $ hg push -r . -B scratch/fillmetadata/fill
304 pushing to ssh://user@dummy/repo
305 searching for changes
306 remote: pushing 6 commits:
307 remote: 33910bfe6ffe testpullbycommithash1
308 remote: d8fde0ddfc96 testpullbycommithash2
309 remote: 3edfe7e9089a add and rm files
310 remote: c7ac39f638c6 cpfile and mvfile
311 remote: 09904fb20c53 add many files
312 remote: d2b0410d4da0 tofillmetadata
313
314 Make sure background process finished
315 $ sleep 3
316 $ cd ../repo
317 $ cat .hg/scratchbranches/index/nodemetadatamap/d2b0410d4da084bc534b1d90df0de9eb21583496
318 {"changed_files": {"tofillmetadata": {"adds": 1, "isbinary": false, "removes": 0, "status": "added"}}} (no-eol)