changeset 23870:9070e20057ae

test-extension: use a realistic Mercurial version Mercurial doesn't define the 3rd "patch" version field for major releases. Don't use it in tests.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 15 Jan 2015 20:03:48 -0800
parents d9967b82394a
children b2d8f3685b06
files tests/test-extension.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-extension.t	Thu Jan 15 19:47:06 2015 -0800
+++ b/tests/test-extension.t	Thu Jan 15 20:03:48 2015 -0800
@@ -918,7 +918,7 @@
   ** Extensions loaded: throw, older
 
 One extension only tested with older, one only with newer versions:
-  $ echo "util.version = lambda:'2.1.0'" >> older.py
+  $ echo "util.version = lambda:'2.1'" >> older.py
   $ rm -f older.pyc older.pyo
   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
   >   throw 2>&1 | egrep '^\*\*'
@@ -927,7 +927,7 @@
   ** Please disable older and try your action again.
   ** If that fixes the bug please report it to the extension author.
   ** Python * (glob)
-  ** Mercurial Distributed SCM (version 2.1.0)
+  ** Mercurial Distributed SCM (version 2.1)
   ** Extensions loaded: throw, older
 
 Older extension is tested with current version, the other only with newer: