##// END OF EJS Templates
tests: simplify treemanifest test by backing up entire .hg/store
Martin von Zweigbergk -
r28005:ed94b24a default
parent child Browse files
Show More
@@ -408,61 +408,56 b' Excludes with a glob should not exclude '
408 408 b/bar/fruits.txt (glob)
409 409 b/bar/orange/fly/gnat.py (glob)
410 410 b/bar/orange/fly/housefly.txt (glob)
411 $ cp -r .hg/store .hg/store-copy
411 412
412 413 Test files for a subdirectory.
413 414
414 $ mv .hg/store/meta/a oldmf
415 $ rm -r .hg/store/meta/a
415 416 $ hg files -r . b
416 417 b/bar/fruits.txt (glob)
417 418 b/bar/orange/fly/gnat.py (glob)
418 419 b/bar/orange/fly/housefly.txt (glob)
419 420 b/foo/apple/bees/flower.py (glob)
420 $ mv oldmf .hg/store/meta/a
421 $ cp -rT .hg/store-copy .hg/store
421 422
422 423 Test files with just includes and excludes.
423 424
424 $ mv .hg/store/meta/a oldmf
425 $ mv .hg/store/meta/b/bar/orange/fly oldmf2
426 $ mv .hg/store/meta/b/foo/apple/bees oldmf3
425 $ rm -r .hg/store/meta/a
426 $ rm -r .hg/store/meta/b/bar/orange/fly
427 $ rm -r .hg/store/meta/b/foo/apple/bees
427 428 $ hg files -r . -I path:b/bar -X path:b/bar/orange/fly -I path:b/foo -X path:b/foo/apple/bees
428 429 b/bar/fruits.txt (glob)
429 $ mv oldmf .hg/store/meta/a
430 $ mv oldmf2 .hg/store/meta/b/bar/orange/fly
431 $ mv oldmf3 .hg/store/meta/b/foo/apple/bees
430 $ cp -rT .hg/store-copy .hg/store
432 431
433 432 Test files for a subdirectory, excluding a directory within it.
434 433
435 $ mv .hg/store/meta/a oldmf
436 $ mv .hg/store/meta/b/foo oldmf2
434 $ rm -r .hg/store/meta/a
435 $ rm -r .hg/store/meta/b/foo
437 436 $ hg files -r . -X path:b/foo b
438 437 b/bar/fruits.txt (glob)
439 438 b/bar/orange/fly/gnat.py (glob)
440 439 b/bar/orange/fly/housefly.txt (glob)
441 $ mv oldmf .hg/store/meta/a
442 $ mv oldmf2 .hg/store/meta/b/foo
440 $ cp -rT .hg/store-copy .hg/store
443 441
444 442 Test files for a sub directory, including only a directory within it, and
445 443 including an unrelated directory.
446 444
447 $ mv .hg/store/meta/a oldmf
448 $ mv .hg/store/meta/b/foo oldmf2
445 $ rm -r .hg/store/meta/a
446 $ rm -r .hg/store/meta/b/foo
449 447 $ hg files -r . -I path:b/bar/orange -I path:a b
450 448 b/bar/orange/fly/gnat.py (glob)
451 449 b/bar/orange/fly/housefly.txt (glob)
452 $ mv oldmf .hg/store/meta/a
453 $ mv oldmf2 .hg/store/meta/b/foo
450 $ cp -rT .hg/store-copy .hg/store
454 451
455 452 Test files for a pattern, including a directory, and excluding a directory
456 453 within that.
457 454
458 $ mv .hg/store/meta/a oldmf
459 $ mv .hg/store/meta/b/foo oldmf2
460 $ mv .hg/store/meta/b/bar/orange oldmf3
455 $ rm -r .hg/store/meta/a
456 $ rm -r .hg/store/meta/b/foo
457 $ rm -r .hg/store/meta/b/bar/orange
461 458 $ hg files -r . glob:**.txt -I path:b/bar -X path:b/bar/orange
462 459 b/bar/fruits.txt (glob)
463 $ mv oldmf .hg/store/meta/a
464 $ mv oldmf2 .hg/store/meta/b/foo
465 $ mv oldmf3 .hg/store/meta/b/bar/orange
460 $ cp -rT .hg/store-copy .hg/store
466 461
467 462 Add some more changes to the deep repo
468 463 $ echo narf >> b/bar/fruits.txt
General Comments 0
You need to be logged in to leave comments. Login now