Mercurial > hg
comparison tests/test-treemanifest.t @ 28005:ed94b24a3bb2
tests: simplify treemanifest test by backing up entire .hg/store
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 03 Feb 2016 15:35:23 -0800 |
parents | 88609cfa3745 |
children | bb45190a54b7 |
comparison
equal
deleted
inserted
replaced
28004:34165875fa5d | 28005:ed94b24a3bb2 |
---|---|
406 | 406 |
407 $ hg files -r . -X 'b/fo?' b | 407 $ hg files -r . -X 'b/fo?' b |
408 b/bar/fruits.txt (glob) | 408 b/bar/fruits.txt (glob) |
409 b/bar/orange/fly/gnat.py (glob) | 409 b/bar/orange/fly/gnat.py (glob) |
410 b/bar/orange/fly/housefly.txt (glob) | 410 b/bar/orange/fly/housefly.txt (glob) |
411 $ cp -r .hg/store .hg/store-copy | |
411 | 412 |
412 Test files for a subdirectory. | 413 Test files for a subdirectory. |
413 | 414 |
414 $ mv .hg/store/meta/a oldmf | 415 $ rm -r .hg/store/meta/a |
415 $ hg files -r . b | 416 $ hg files -r . b |
416 b/bar/fruits.txt (glob) | 417 b/bar/fruits.txt (glob) |
417 b/bar/orange/fly/gnat.py (glob) | 418 b/bar/orange/fly/gnat.py (glob) |
418 b/bar/orange/fly/housefly.txt (glob) | 419 b/bar/orange/fly/housefly.txt (glob) |
419 b/foo/apple/bees/flower.py (glob) | 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 Test files with just includes and excludes. | 423 Test files with just includes and excludes. |
423 | 424 |
424 $ mv .hg/store/meta/a oldmf | 425 $ rm -r .hg/store/meta/a |
425 $ mv .hg/store/meta/b/bar/orange/fly oldmf2 | 426 $ rm -r .hg/store/meta/b/bar/orange/fly |
426 $ mv .hg/store/meta/b/foo/apple/bees oldmf3 | 427 $ rm -r .hg/store/meta/b/foo/apple/bees |
427 $ hg files -r . -I path:b/bar -X path:b/bar/orange/fly -I path:b/foo -X path:b/foo/apple/bees | 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 b/bar/fruits.txt (glob) | 429 b/bar/fruits.txt (glob) |
429 $ mv oldmf .hg/store/meta/a | 430 $ cp -rT .hg/store-copy .hg/store |
430 $ mv oldmf2 .hg/store/meta/b/bar/orange/fly | |
431 $ mv oldmf3 .hg/store/meta/b/foo/apple/bees | |
432 | 431 |
433 Test files for a subdirectory, excluding a directory within it. | 432 Test files for a subdirectory, excluding a directory within it. |
434 | 433 |
435 $ mv .hg/store/meta/a oldmf | 434 $ rm -r .hg/store/meta/a |
436 $ mv .hg/store/meta/b/foo oldmf2 | 435 $ rm -r .hg/store/meta/b/foo |
437 $ hg files -r . -X path:b/foo b | 436 $ hg files -r . -X path:b/foo b |
438 b/bar/fruits.txt (glob) | 437 b/bar/fruits.txt (glob) |
439 b/bar/orange/fly/gnat.py (glob) | 438 b/bar/orange/fly/gnat.py (glob) |
440 b/bar/orange/fly/housefly.txt (glob) | 439 b/bar/orange/fly/housefly.txt (glob) |
441 $ mv oldmf .hg/store/meta/a | 440 $ cp -rT .hg/store-copy .hg/store |
442 $ mv oldmf2 .hg/store/meta/b/foo | |
443 | 441 |
444 Test files for a sub directory, including only a directory within it, and | 442 Test files for a sub directory, including only a directory within it, and |
445 including an unrelated directory. | 443 including an unrelated directory. |
446 | 444 |
447 $ mv .hg/store/meta/a oldmf | 445 $ rm -r .hg/store/meta/a |
448 $ mv .hg/store/meta/b/foo oldmf2 | 446 $ rm -r .hg/store/meta/b/foo |
449 $ hg files -r . -I path:b/bar/orange -I path:a b | 447 $ hg files -r . -I path:b/bar/orange -I path:a b |
450 b/bar/orange/fly/gnat.py (glob) | 448 b/bar/orange/fly/gnat.py (glob) |
451 b/bar/orange/fly/housefly.txt (glob) | 449 b/bar/orange/fly/housefly.txt (glob) |
452 $ mv oldmf .hg/store/meta/a | 450 $ cp -rT .hg/store-copy .hg/store |
453 $ mv oldmf2 .hg/store/meta/b/foo | |
454 | 451 |
455 Test files for a pattern, including a directory, and excluding a directory | 452 Test files for a pattern, including a directory, and excluding a directory |
456 within that. | 453 within that. |
457 | 454 |
458 $ mv .hg/store/meta/a oldmf | 455 $ rm -r .hg/store/meta/a |
459 $ mv .hg/store/meta/b/foo oldmf2 | 456 $ rm -r .hg/store/meta/b/foo |
460 $ mv .hg/store/meta/b/bar/orange oldmf3 | 457 $ rm -r .hg/store/meta/b/bar/orange |
461 $ hg files -r . glob:**.txt -I path:b/bar -X path:b/bar/orange | 458 $ hg files -r . glob:**.txt -I path:b/bar -X path:b/bar/orange |
462 b/bar/fruits.txt (glob) | 459 b/bar/fruits.txt (glob) |
463 $ mv oldmf .hg/store/meta/a | 460 $ cp -rT .hg/store-copy .hg/store |
464 $ mv oldmf2 .hg/store/meta/b/foo | |
465 $ mv oldmf3 .hg/store/meta/b/bar/orange | |
466 | 461 |
467 Add some more changes to the deep repo | 462 Add some more changes to the deep repo |
468 $ echo narf >> b/bar/fruits.txt | 463 $ echo narf >> b/bar/fruits.txt |
469 $ hg ci -m narf | 464 $ hg ci -m narf |
470 $ echo troz >> b/bar/orange/fly/gnat.py | 465 $ echo troz >> b/bar/orange/fly/gnat.py |