comparison tests/test-dispatch @ 11675:f92f8921a5cc stable

dispatch: give better error message when cwd doesn't exist (issue2293) Previous behavior wasn't very helpful: $ hg st foo abort: No such file or directory Now we tell more about what failed: abort: error getting current working directory: No such file or directory
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 24 Jul 2010 00:38:08 +0200
parents c88c8d59979f
children 423ece53380e
comparison
equal deleted inserted replaced
11674:c29012a73518 11675:f92f8921a5cc
1 #!/bin/sh 1 #!/bin/sh
2 # test command parsing and dispatch 2 # test command parsing and dispatch
3 3
4 "$TESTDIR/hghave" no-outer-repo || exit 80 4 "$TESTDIR/hghave" no-outer-repo || exit 80
5
6 dir=`pwd`
5 7
6 hg init a 8 hg init a
7 cd a 9 cd a
8 echo a > a 10 echo a > a
9 hg ci -Ama 11 hg ci -Ama
17 [defaults] 19 [defaults]
18 cat = -r null 20 cat = -r null
19 EOF 21 EOF
20 hg cat a 22 hg cat a
21 23
24 echo '% working directory removed'
25 rm -rf $dir/a
26 hg --version
27
22 echo '% no repo' 28 echo '% no repo'
23 cd .. 29 cd $dir
24 hg cat 30 hg cat
25 31
26 exit 0 32 exit 0
27 33