##// END OF EJS Templates
dispatch: improve repository not found message...
Matt Mackall -
r13967:f85c9b0f default
parent child Browse files
Show More
@@ -586,8 +586,8 b' def _dispatch(ui, args):'
586 if guess and repos.count(guess) == len(repos):
586 if guess and repos.count(guess) == len(repos):
587 return _dispatch(ui, ['--repository', guess] + fullargs)
587 return _dispatch(ui, ['--repository', guess] + fullargs)
588 if not path:
588 if not path:
589 raise error.RepoError(_("There is no Mercurial repository"
589 raise error.RepoError(_("no repository found in %r"
590 " here (.hg not found)"))
590 " (.hg not found)") % os.getcwd())
591 raise
591 raise
592 args.insert(0, repo)
592 args.insert(0, repo)
593 elif rpath:
593 elif rpath:
@@ -47,6 +47,6 b' No repo:'
47
47
48 $ cd $dir
48 $ cd $dir
49 $ hg cat
49 $ hg cat
50 abort: There is no Mercurial repository here (.hg not found)!
50 abort: no repository found in '$TESTTMP' (.hg not found)!
51 [255]
51 [255]
52
52
@@ -84,13 +84,13 b' Implicit -R:'
84 $ hg ann a/a a/a
84 $ hg ann a/a a/a
85 0: a
85 0: a
86 $ hg ann a/a b/b
86 $ hg ann a/a b/b
87 abort: There is no Mercurial repository here (.hg not found)!
87 abort: no repository found in '$TESTTMP' (.hg not found)!
88 [255]
88 [255]
89 $ hg -R b ann a/a
89 $ hg -R b ann a/a
90 abort: a/a not under root
90 abort: a/a not under root
91 [255]
91 [255]
92 $ hg log
92 $ hg log
93 abort: There is no Mercurial repository here (.hg not found)!
93 abort: no repository found in '$TESTTMP' (.hg not found)!
94 [255]
94 [255]
95
95
96 Abbreviation of long option:
96 Abbreviation of long option:
@@ -8,17 +8,17 b' Default encoding in tests is "ascii" and'
8 using the "replace" error handler:
8 using the "replace" error handler:
9
9
10 $ LANGUAGE=pt_BR hg tip
10 $ LANGUAGE=pt_BR hg tip
11 abortado: N?o h? um reposit?rio do Mercurial aqui (.hg n?o encontrado)!
11 abortado: no repository found in '$TESTTMP' (.hg not found)!
12 [255]
12 [255]
13
13
14 Using a more accomodating encoding:
14 Using a more accomodating encoding:
15
15
16 $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
16 $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
17 abortado: N\xc3\xa3o h\xc3\xa1 um reposit\xc3\xb3rio do Mercurial aqui (.hg n\xc3\xa3o encontrado)! (esc)
17 abortado: no repository found in '$TESTTMP' (.hg not found)!
18 [255]
18 [255]
19
19
20 Different encoding:
20 Different encoding:
21
21
22 $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
22 $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
23 abortado: N\xe3o h\xe1 um reposit\xf3rio do Mercurial aqui (.hg n\xe3o encontrado)! (esc)
23 abortado: no repository found in '$TESTTMP' (.hg not found)!
24 [255]
24 [255]
General Comments 0
You need to be logged in to leave comments. Login now