952 > echo "unable to fetch a mercurial version. Make sure __version__ is correct"; |
952 > echo "unable to fetch a mercurial version. Make sure __version__ is correct"; |
953 > fi |
953 > fi |
954 $ rm -f throw.pyc throw.pyo |
954 $ rm -f throw.pyc throw.pyo |
955 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*' |
955 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*' |
956 ** unknown exception encountered, please report by visiting |
956 ** unknown exception encountered, please report by visiting |
957 ** http://mercurial.selenic.com/wiki/BugTracker |
957 ** https://mercurial-scm.org/wiki/BugTracker |
958 ** Python * (glob) |
958 ** Python * (glob) |
959 ** Mercurial Distributed SCM (*) (glob) |
959 ** Mercurial Distributed SCM (*) (glob) |
960 ** Extensions loaded: throw |
960 ** Extensions loaded: throw |
961 |
961 |
962 Patch version is ignored during compatibility check |
962 Patch version is ignored during compatibility check |
963 $ echo "testedwith = '3.2'" >> throw.py |
963 $ echo "testedwith = '3.2'" >> throw.py |
964 $ echo "util.version = lambda:'3.2.2'" >> throw.py |
964 $ echo "util.version = lambda:'3.2.2'" >> throw.py |
965 $ rm -f throw.pyc throw.pyo |
965 $ rm -f throw.pyc throw.pyo |
966 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*' |
966 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*' |
967 ** unknown exception encountered, please report by visiting |
967 ** unknown exception encountered, please report by visiting |
968 ** http://mercurial.selenic.com/wiki/BugTracker |
968 ** https://mercurial-scm.org/wiki/BugTracker |
969 ** Python * (glob) |
969 ** Python * (glob) |
970 ** Mercurial Distributed SCM (*) (glob) |
970 ** Mercurial Distributed SCM (*) (glob) |
971 ** Extensions loaded: throw |
971 ** Extensions loaded: throw |
972 |
972 |
973 Test version number support in 'hg version': |
973 Test version number support in 'hg version': |
974 $ echo '__version__ = (1, 2, 3)' >> throw.py |
974 $ echo '__version__ = (1, 2, 3)' >> throw.py |
975 $ rm -f throw.pyc throw.pyo |
975 $ rm -f throw.pyc throw.pyo |
976 $ hg version -v |
976 $ hg version -v |
977 Mercurial Distributed SCM (version *) (glob) |
977 Mercurial Distributed SCM (version *) (glob) |
978 (see http://mercurial.selenic.com for more information) |
978 (see https://mercurial-scm.org for more information) |
979 |
979 |
980 Copyright (C) 2005-* Matt Mackall and others (glob) |
980 Copyright (C) 2005-* Matt Mackall and others (glob) |
981 This is free software; see the source for copying conditions. There is NO |
981 This is free software; see the source for copying conditions. There is NO |
982 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
982 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
983 |
983 |
984 Enabled extensions: |
984 Enabled extensions: |
985 |
985 |
986 |
986 |
987 $ hg version -v --config extensions.throw=throw.py |
987 $ hg version -v --config extensions.throw=throw.py |
988 Mercurial Distributed SCM (version *) (glob) |
988 Mercurial Distributed SCM (version *) (glob) |
989 (see http://mercurial.selenic.com for more information) |
989 (see https://mercurial-scm.org for more information) |
990 |
990 |
991 Copyright (C) 2005-* Matt Mackall and others (glob) |
991 Copyright (C) 2005-* Matt Mackall and others (glob) |
992 This is free software; see the source for copying conditions. There is NO |
992 This is free software; see the source for copying conditions. There is NO |
993 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
993 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
994 |
994 |
997 throw 1.2.3 |
997 throw 1.2.3 |
998 $ echo 'getversion = lambda: "1.twentythree"' >> throw.py |
998 $ echo 'getversion = lambda: "1.twentythree"' >> throw.py |
999 $ rm -f throw.pyc throw.pyo |
999 $ rm -f throw.pyc throw.pyo |
1000 $ hg version -v --config extensions.throw=throw.py |
1000 $ hg version -v --config extensions.throw=throw.py |
1001 Mercurial Distributed SCM (version *) (glob) |
1001 Mercurial Distributed SCM (version *) (glob) |
1002 (see http://mercurial.selenic.com for more information) |
1002 (see https://mercurial-scm.org for more information) |
1003 |
1003 |
1004 Copyright (C) 2005-* Matt Mackall and others (glob) |
1004 Copyright (C) 2005-* Matt Mackall and others (glob) |
1005 This is free software; see the source for copying conditions. There is NO |
1005 This is free software; see the source for copying conditions. There is NO |
1006 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
1006 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
1007 |
1007 |