Mercurial > hg
comparison tests/test-subrepo.t @ 44724:5c2a4f37eace
tests: deal with "ls" vs "ls -A" difference on 2BSD derived systems
BSD-derived systems will use "ls -A" when running as root. Adjust the
test cases to always use the flag and include .hg and related output as
appropiately.
Differential Revision: https://phab.mercurial-scm.org/D8397
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 10 Apr 2020 19:58:34 +0200 |
parents | 687b865b95ad |
children | 95c4cca641f6 |
comparison
equal
deleted
inserted
replaced
44723:28aacddf3af0 | 44724:5c2a4f37eace |
---|---|
496 $ hg clone t -U tc2 --config subrepos.allowed=false | 496 $ hg clone t -U tc2 --config subrepos.allowed=false |
497 $ hg update -R tc2 --config subrepos.allowed=false | 497 $ hg update -R tc2 --config subrepos.allowed=false |
498 abort: subrepos not enabled | 498 abort: subrepos not enabled |
499 (see 'hg help config.subrepos' for details) | 499 (see 'hg help config.subrepos' for details) |
500 [255] | 500 [255] |
501 $ ls tc2 | 501 $ ls -A tc2 |
502 .hg | |
503 .hgsub | |
504 .hgsubstate | |
502 a | 505 a |
503 | 506 |
504 $ hg clone t tc3 --config subrepos.allowed=false | 507 $ hg clone t tc3 --config subrepos.allowed=false |
505 updating to branch default | 508 updating to branch default |
506 abort: subrepos not enabled | 509 abort: subrepos not enabled |
507 (see 'hg help config.subrepos' for details) | 510 (see 'hg help config.subrepos' for details) |
508 [255] | 511 [255] |
509 $ ls tc3 | 512 $ ls -A tc3 |
513 .hg | |
514 .hgsub | |
515 .hgsubstate | |
510 a | 516 a |
511 | 517 |
512 And again with just the hg type disabled | 518 And again with just the hg type disabled |
513 | 519 |
514 $ hg clone t -U tc4 --config subrepos.hg:allowed=false | 520 $ hg clone t -U tc4 --config subrepos.hg:allowed=false |
515 $ hg update -R tc4 --config subrepos.hg:allowed=false | 521 $ hg update -R tc4 --config subrepos.hg:allowed=false |
516 abort: hg subrepos not allowed | 522 abort: hg subrepos not allowed |
517 (see 'hg help config.subrepos' for details) | 523 (see 'hg help config.subrepos' for details) |
518 [255] | 524 [255] |
519 $ ls tc4 | 525 $ ls -A tc4 |
526 .hg | |
527 .hgsub | |
528 .hgsubstate | |
520 a | 529 a |
521 | 530 |
522 $ hg clone t tc5 --config subrepos.hg:allowed=false | 531 $ hg clone t tc5 --config subrepos.hg:allowed=false |
523 updating to branch default | 532 updating to branch default |
524 abort: hg subrepos not allowed | 533 abort: hg subrepos not allowed |
525 (see 'hg help config.subrepos' for details) | 534 (see 'hg help config.subrepos' for details) |
526 [255] | 535 [255] |
527 $ ls tc5 | 536 $ ls -A tc5 |
537 .hg | |
538 .hgsub | |
539 .hgsubstate | |
528 a | 540 a |
529 | 541 |
530 push | 542 push |
531 | 543 |
532 $ cd tc | 544 $ cd tc |