# HG changeset patch # User Gregory Szorc # Date 1421381028 28800 # 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 -r d9967b82394a -r 9070e20057ae tests/test-extension.t --- 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: