Mercurial > hg
comparison tests/test-clone.t @ 38986:ac0a87160012
localrepo: better error when a repo exists but we lack permissions
Claiming "repository foo not found" when the repository does exist
causes confusion regularly ("where is the typo?").
Differential Revision: https://phab.mercurial-scm.org/D4122
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Sat, 04 Aug 2018 21:31:46 -0400 |
parents | 0a57945aaf7f |
children | c11e8894b9ca |
comparison
equal
deleted
inserted
replaced
38985:d85b0d81112b | 38986:ac0a87160012 |
---|---|
640 Inaccessible source | 640 Inaccessible source |
641 | 641 |
642 $ mkdir a | 642 $ mkdir a |
643 $ chmod 000 a | 643 $ chmod 000 a |
644 $ hg clone a b | 644 $ hg clone a b |
645 abort: repository a not found! | 645 abort: Permission denied: '$TESTTMP/fail/a/.hg' |
646 [255] | 646 [255] |
647 | 647 |
648 Inaccessible destination | 648 Inaccessible destination |
649 | 649 |
650 $ hg init b | 650 $ hg init b |
663 | 663 |
664 Source of wrong type | 664 Source of wrong type |
665 | 665 |
666 $ mkfifo a | 666 $ mkfifo a |
667 $ hg clone a b | 667 $ hg clone a b |
668 abort: repository a not found! | 668 abort: $ENOTDIR$: '$TESTTMP/fail/a/.hg' |
669 [255] | 669 [255] |
670 $ rm a | 670 $ rm a |
671 | 671 |
672 #endif | 672 #endif |
673 | 673 |