comparison tests/test-treemanifest.t @ 28031:6f248ba85309

treemanifest: fix debugrebuildfncache When I taught debugrebuildfncache about dirlogs in fb92927f9775 (treemanifests: fix streaming clone, 2016-02-04), I added a last-minute "if 'treemanifest' in repo" guard. That should have been checking for "... in repo.requirements". Fix that and add tests for it.
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 07 Feb 2016 21:44:38 -0800
parents fb92927f9775
children 0b912c9f5eaf
comparison
equal deleted inserted replaced
28030:ca2a0a654f54 28031:6f248ba85309
462 Add some more changes to the deep repo 462 Add some more changes to the deep repo
463 $ echo narf >> b/bar/fruits.txt 463 $ echo narf >> b/bar/fruits.txt
464 $ hg ci -m narf 464 $ hg ci -m narf
465 $ echo troz >> b/bar/orange/fly/gnat.py 465 $ echo troz >> b/bar/orange/fly/gnat.py
466 $ hg ci -m troz 466 $ hg ci -m troz
467
468 Verify works
469 $ hg verify
470 checking changesets
471 checking manifests
472 crosschecking files in changesets and manifests
473 checking files
474 8 files, 3 changesets, 10 total revisions
475
476 Dirlogs are included in fncache
477 $ grep meta/.A/00manifest.i .hg/store/fncache
478 meta/.A/00manifest.i
479
480 Rebuilt fncache includes dirlogs
481 $ rm .hg/store/fncache
482 $ hg debugrebuildfncache
483 adding data/.A/one.txt.i
484 adding data/.A/two.txt.i
485 adding data/b/bar/fruits.txt.i
486 adding data/b/bar/orange/fly/gnat.py.i
487 adding data/b/bar/orange/fly/housefly.txt.i
488 adding data/b/foo/apple/bees/flower.py.i
489 adding data/c.txt.i
490 adding data/d.py.i
491 adding meta/.A/00manifest.i
492 adding meta/b/00manifest.i
493 adding meta/b/bar/00manifest.i
494 adding meta/b/bar/orange/00manifest.i
495 adding meta/b/bar/orange/fly/00manifest.i
496 adding meta/b/foo/00manifest.i
497 adding meta/b/foo/apple/00manifest.i
498 adding meta/b/foo/apple/bees/00manifest.i
499 16 items added, 0 removed from fncache
467 500
468 Test cloning a treemanifest repo over http. 501 Test cloning a treemanifest repo over http.
469 $ hg serve -p $HGPORT2 -d --pid-file=hg.pid --errorlog=errors.log 502 $ hg serve -p $HGPORT2 -d --pid-file=hg.pid --errorlog=errors.log
470 $ cat hg.pid >> $DAEMON_PIDS 503 $ cat hg.pid >> $DAEMON_PIDS
471 $ cd .. 504 $ cd ..