Mercurial > hg-stable
diff tests/test-globalopts.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 | 30143c3dd102 |
children | 4f9a52858512 |
line wrap: on
line diff
--- a/tests/test-globalopts.t Wed Jun 20 12:30:16 2012 -0500 +++ b/tests/test-globalopts.t Wed Jun 20 23:41:21 2012 +0200 @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" no-outer-repo || exit 80 - $ hg init a $ cd a $ echo a > a @@ -77,6 +75,8 @@ 8580ff50825a tip $ cd .. +#if no-outer-repo + Implicit -R: $ hg ann a/a @@ -93,6 +93,8 @@ abort: no repository found in '$TESTTMP' (.hg not found)! [255] +#endif + Abbreviation of long option: $ hg --repo c tip @@ -272,6 +274,9 @@ $ hg --version -q Mercurial Distributed SCM * (glob) +hide outer repo + $ hg init + Testing -h/--help: $ hg -h