tests/test-remotefilelog-bgprefetch.t
branchstable
changeset 43461 4f40dc190f63
parent 43460 b6c7475595db
child 43462 612b4b63fb22
equal deleted inserted replaced
43460:b6c7475595db 43461:4f40dc190f63
    77   updating bookmark foo
    77   updating bookmark foo
    78   added 1 changesets with 0 changes to 0 files
    78   added 1 changesets with 0 changes to 0 files
    79   new changesets 6b4b6f66ef8c
    79   new changesets 6b4b6f66ef8c
    80   (run 'hg update' to get a working copy)
    80   (run 'hg update' to get a working copy)
    81   prefetching file contents
    81   prefetching file contents
    82   $ hg debugwaitonprefetch >/dev/null 2>&1
       
    83   $ find $CACHEDIR -type f | sort
    82   $ find $CACHEDIR -type f | sort
    84   $TESTTMP/hgcache/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/ef95c5376f34698742fe34f315fd82136f8f68c0
    83   $TESTTMP/hgcache/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/ef95c5376f34698742fe34f315fd82136f8f68c0
    85   $TESTTMP/hgcache/master/95/cb0bfd2977c761298d9624e4b4d4c72a39974a/076f5e2225b3ff0400b98c92aa6cdf403ee24cca
    84   $TESTTMP/hgcache/master/95/cb0bfd2977c761298d9624e4b4d4c72a39974a/076f5e2225b3ff0400b98c92aa6cdf403ee24cca
    86   $TESTTMP/hgcache/master/af/f024fe4ab0fece4091de044c58c9ae4233383a/bb6ccd5dceaa5e9dc220e0dad65e051b94f69a2c
    85   $TESTTMP/hgcache/master/af/f024fe4ab0fece4091de044c58c9ae4233383a/bb6ccd5dceaa5e9dc220e0dad65e051b94f69a2c
    87   $TESTTMP/hgcache/repos
    86   $TESTTMP/hgcache/repos
   105   updating bookmark foo
   104   updating bookmark foo
   106   added 1 changesets with 0 changes to 0 files
   105   added 1 changesets with 0 changes to 0 files
   107   new changesets 6b4b6f66ef8c
   106   new changesets 6b4b6f66ef8c
   108   (run 'hg update' to get a working copy)
   107   (run 'hg update' to get a working copy)
   109   prefetching file contents
   108   prefetching file contents
   110   $ hg debugwaitonprefetch >/dev/null 2>&1
       
   111   $ hg debugwaitonrepack >/dev/null 2>&1
       
   112   $ find $CACHEDIR -type f | sort
   109   $ find $CACHEDIR -type f | sort
   113   $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histidx
   110   $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histidx
   114   $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histpack
   111   $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histpack
   115   $TESTTMP/hgcache/master/packs/8ce5ab3745465ab83bba30a7b9c295e0c8404652.dataidx
   112   $TESTTMP/hgcache/master/packs/8ce5ab3745465ab83bba30a7b9c295e0c8404652.dataidx
   116   $TESTTMP/hgcache/master/packs/8ce5ab3745465ab83bba30a7b9c295e0c8404652.datapack
   113   $TESTTMP/hgcache/master/packs/8ce5ab3745465ab83bba30a7b9c295e0c8404652.datapack
   138 
   135 
   139   $ clearcache
   136   $ clearcache
   140   $ hg up -r 0
   137   $ hg up -r 0
   141   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   138   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   142   * files fetched over * fetches - (* misses, 0.00% hit ratio) over *s (glob)
   139   * files fetched over * fetches - (* misses, 0.00% hit ratio) over *s (glob)
   143   $ hg debugwaitonprefetch >/dev/null 2>&1
       
   144   $ hg debugwaitonrepack >/dev/null 2>&1
       
   145   $ find $CACHEDIR -type f | sort
   140   $ find $CACHEDIR -type f | sort
   146   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   141   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   147   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   142   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   148   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   143   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   149   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack
   144   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack
   187   $ find $CACHEDIR -type f | sort
   182   $ find $CACHEDIR -type f | sort
   188   $ echo b > b
   183   $ echo b > b
   189   $ hg commit -qAm b
   184   $ hg commit -qAm b
   190   * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob)
   185   * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob)
   191   $ hg bookmark temporary
   186   $ hg bookmark temporary
   192   $ hg debugwaitonprefetch >/dev/null 2>&1
       
   193   $ hg debugwaitonrepack >/dev/null 2>&1
       
   194   $ find $CACHEDIR -type f | sort
   187   $ find $CACHEDIR -type f | sort
   195   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   188   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   196   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   189   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   197   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   190   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   198   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack
   191   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack
   234   $ find $CACHEDIR -type f | sort
   227   $ find $CACHEDIR -type f | sort
   235   $ hg rebase -s temporary -d foo
   228   $ hg rebase -s temporary -d foo
   236   rebasing 3:d9cf06e3b5b6 "b" (temporary tip)
   229   rebasing 3:d9cf06e3b5b6 "b" (temporary tip)
   237   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg
   230   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg
   238   3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
   231   3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
   239   $ hg debugwaitonprefetch >/dev/null 2>&1
       
   240   $ hg debugwaitonrepack >/dev/null 2>&1
       
   241 
   232 
   242 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore
   233 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore
   243 # could only be downloaded by the background prefetch
   234 # could only be downloaded by the background prefetch
   244 
   235 
   245   $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1`
   236   $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1`
   275   waiting for lock on prefetching in $TESTTMP/shallow held by process * on host * (glob) (?)
   266   waiting for lock on prefetching in $TESTTMP/shallow held by process * on host * (glob) (?)
   276   got lock after * seconds (glob) (?)
   267   got lock after * seconds (glob) (?)
   277   (running background incremental repack)
   268   (running background incremental repack)
   278   * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
   269   * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
   279 
   270 
   280   $ hg debugwaitonrepack >/dev/null 2>&1
       
   281 
       
   282   $ find $CACHEDIR -type f | sort
   271   $ find $CACHEDIR -type f | sort
   283   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   272   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   284   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   273   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   285   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   274   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   286   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack
   275   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack
   317   $ hg prefetch --repack
   306   $ hg prefetch --repack
   318   waiting for lock on prefetching in $TESTTMP/shallow held by process * on host * (glob) (?)
   307   waiting for lock on prefetching in $TESTTMP/shallow held by process * on host * (glob) (?)
   319   got lock after * seconds (glob) (?)
   308   got lock after * seconds (glob) (?)
   320   (running background incremental repack)
   309   (running background incremental repack)
   321   * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
   310   * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
   322   $ hg debugwaitonrepack >/dev/null 2>&1
       
   323 
   311 
   324   $ find $CACHEDIR -type f | sort
   312   $ find $CACHEDIR -type f | sort
   325   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   313   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
   326   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   314   $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
   327   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx
   315   $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx