Mercurial > public > mercurial-scm > hg
diff tests/test-identify.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 | c5c9ca3719f9 |
children | b93791e0de25 |
line wrap: on
line diff
--- a/tests/test-identify.t Wed Jun 20 12:30:16 2012 -0500 +++ b/tests/test-identify.t Wed Jun 20 23:41:21 2012 +0200 @@ -1,4 +1,6 @@ - $ "$TESTDIR/hghave" no-outer-repo serve || exit 80 + $ "$TESTDIR/hghave" serve || exit 80 + +#if no-outer-repo no repo @@ -6,6 +8,8 @@ abort: there is no Mercurial repository here (.hg not found) [255] +#endif + create repo $ hg init test @@ -51,8 +55,10 @@ $ cd .. $ hg -R test id cb9a9f314b8b+ tip +#if no-outer-repo $ hg id test cb9a9f314b8b+ tip +#endif with remote http repo @@ -111,7 +117,8 @@ [255] $ cd .. +#if no-outer-repo $ hg id test abort: unknown repository format: requires features 'fake' (upgrade Mercurial)! [255] - +#endif