summaryrefslogtreecommitdiff
path: root/tests/test-requires.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-requires.t')
-rw-r--r--tests/test-requires.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test-requires.t b/tests/test-requires.t
new file mode 100644
index 0000000..ff3427d
--- /dev/null
+++ b/tests/test-requires.t
@@ -0,0 +1,19 @@
+ $ hg init t
+ $ cd t
+ $ echo a > a
+ $ hg add a
+ $ hg commit -m test
+ $ rm .hg/requires
+ $ hg tip
+ abort: index 00changelog.i unknown format 2!
+ [255]
+ $ echo indoor-pool > .hg/requires
+ $ hg tip
+ abort: unknown repository format: requires features 'indoor-pool' (upgrade Mercurial)!
+ [255]
+ $ echo outdoor-pool >> .hg/requires
+ $ hg tip
+ abort: unknown repository format: requires features 'indoor-pool', 'outdoor-pool' (upgrade Mercurial)!
+ [255]
+
+ $ cd ..