diff 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
line wrap: on
line diff
--- a/tests/test-clone.t	Mon Aug 06 11:32:16 2018 -0700
+++ b/tests/test-clone.t	Sat Aug 04 21:31:46 2018 -0400
@@ -642,7 +642,7 @@
   $ mkdir a
   $ chmod 000 a
   $ hg clone a b
-  abort: repository a not found!
+  abort: Permission denied: '$TESTTMP/fail/a/.hg'
   [255]
 
 Inaccessible destination
@@ -665,7 +665,7 @@
 
   $ mkfifo a
   $ hg clone a b
-  abort: repository a not found!
+  abort: $ENOTDIR$: '$TESTTMP/fail/a/.hg'
   [255]
   $ rm a