Show More
@@ -408,61 +408,56 b' Excludes with a glob should not exclude ' | |||||
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 |
$ |
|
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 |
$ |
|
425 | $ rm -r .hg/store/meta/a | |
425 |
$ |
|
426 | $ rm -r .hg/store/meta/b/bar/orange/fly | |
426 |
$ |
|
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 |
$ |
|
434 | $ rm -r .hg/store/meta/a | |
436 |
$ |
|
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 |
$ |
|
445 | $ rm -r .hg/store/meta/a | |
448 |
$ |
|
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 |
$ |
|
455 | $ rm -r .hg/store/meta/a | |
459 |
$ |
|
456 | $ rm -r .hg/store/meta/b/foo | |
460 |
$ |
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now