Mercurial > public > mercurial-scm > hg-stable
diff tests/test-dispatch.t @ 17014:50fbe9063ff2
tests: convert some 'hghave no-outer-repo' to #if
In some places we instead use 'hg init' to create a well-known outer repo
without any special extensions or other config settings.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 20 Jun 2012 23:41:21 +0200 |
parents | ff26712a0c50 |
children | fe67db018bd7 |
line wrap: on
line diff
--- a/tests/test-dispatch.t Wed Jun 20 12:30:16 2012 -0500 +++ b/tests/test-dispatch.t Wed Jun 20 23:41:21 2012 +0200 @@ -1,9 +1,5 @@ test command parsing and dispatch - $ "$TESTDIR/hghave" no-outer-repo || exit 80 - - $ dir=`pwd` - $ hg init a $ cd a @@ -48,6 +44,10 @@ a: no such file in rev 000000000000 [1] + $ cd "$TESTTMP" + +#if no-outer-repo + No repo: $ cd $dir @@ -55,3 +55,4 @@ abort: no repository found in '$TESTTMP' (.hg not found)! [255] +#endif