# HG changeset patch # User Gregory Szorc # Date 2015-01-16 04:03:48 # Node ID 9070e20057aeaea0dcbd712796691553ce2bd115 # Parent d9967b82394a758185f0e78f4c0a517073075209 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. diff --git a/tests/test-extension.t b/tests/test-extension.t --- a/tests/test-extension.t +++ b/tests/test-extension.t @@ -918,7 +918,7 @@ If the extensions declare outdated versi ** 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 @@ One extension only tested with older, on ** 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: