tests/test-extension.t
changeset 48015 a9bedc56f025
parent 47851 d88f4231712c
child 48016 5caec48d9a01
equal deleted inserted replaced
48014:0dc4cc654d96 48015:a9bedc56f025
  1690   > minimumhgversion = b'3.5'
  1690   > minimumhgversion = b'3.5'
  1691   > EOF
  1691   > EOF
  1692   $ hg --config extensions.minversion=minversion3.py version 2>&1 | egrep '\(third'
  1692   $ hg --config extensions.minversion=minversion3.py version 2>&1 | egrep '\(third'
  1693   [1]
  1693   [1]
  1694 
  1694 
       
  1695 Don't explode on py3 with a bad version number
       
  1696 
       
  1697   $ cat > minversion4.py << EOF
       
  1698   > from mercurial import util
       
  1699   > util.version = lambda: b'3.5'
       
  1700   > minimumhgversion = b'3'
       
  1701   > EOF
       
  1702   $ hg --config extensions.minversion=minversion4.py version -v
       
  1703   Mercurial Distributed SCM (version 3.5)
       
  1704   (see https://mercurial-scm.org for more information)
       
  1705   
       
  1706   Copyright (C) 2005-* Olivia Mackall and others (glob)
       
  1707   This is free software; see the source for copying conditions. There is NO
       
  1708   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       
  1709   
       
  1710   Enabled extensions:
       
  1711   
       
  1712     minversion  external  
       
  1713 
  1695 Restore HGRCPATH
  1714 Restore HGRCPATH
  1696 
  1715 
  1697   $ HGRCPATH=$ORGHGRCPATH
  1716   $ HGRCPATH=$ORGHGRCPATH
  1698   $ export HGRCPATH
  1717   $ export HGRCPATH
  1699 
  1718