tests/test-check-py3-commands.t
changeset 31377 52ee1b5ac277
parent 31376 3690c75f4d1e
child 31398 d785fed7c115
equal deleted inserted replaced
31376:3690c75f4d1e 31377:52ee1b5ac277
    11   > done
    11   > done
    12   version
    12   version
    13   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    13   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    14   debuginstall
    14   debuginstall
    15   no problems detected
    15   no problems detected
       
    16 
       
    17 #if test-repo
       
    18 Make a clone so that any features in the developer's .hg/hgrc that
       
    19 might confuse Python 3 don't break this test. When we can do commit in
       
    20 Python 3, we'll stop doing this. We use e76ed1e480ef for the clone
       
    21 because it has different files than 273ce12ad8f1, so we can test both
       
    22 `files` from dirstate and `files` loaded from a specific revision.
       
    23 
       
    24   $ hg clone -r e76ed1e480ef "`dirname "$TESTDIR"`" testrepo 2>&1 | tail -1
       
    25   15 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
    26 
       
    27 Test using -R, which exercises some URL code:
       
    28   $ $PYTHON3 $HGBIN -R testrepo files -r 273ce12ad8f1 | tail -1
       
    29   testrepo/tkmerge
       
    30 
       
    31 Now prove `hg files` is reading the whole manifest. We have to grep
       
    32 out some potential warnings that come from hgrc as yet.
       
    33   $ cd testrepo
       
    34   $ $PYTHON3 $HGBIN files -r 273ce12ad8f1
       
    35   .hgignore
       
    36   PKG-INFO
       
    37   README
       
    38   hg
       
    39   mercurial/__init__.py
       
    40   mercurial/byterange.py
       
    41   mercurial/fancyopts.py
       
    42   mercurial/hg.py
       
    43   mercurial/mdiff.py
       
    44   mercurial/revlog.py
       
    45   mercurial/transaction.py
       
    46   notes.txt
       
    47   setup.py
       
    48   tkmerge
       
    49 
       
    50   $ $PYTHON3 $HGBIN files -r 273ce12ad8f1 | wc -l
       
    51   \s*14 (re)
       
    52   $ $PYTHON3 $HGBIN files | wc -l
       
    53   \s*15 (re)
       
    54   $ cd ..
       
    55 #endif
    16 
    56 
    17   $ cat > included-hgrc <<EOF
    57   $ cat > included-hgrc <<EOF
    18   > [extensions]
    58   > [extensions]
    19   > babar = imaginary_elephant
    59   > babar = imaginary_elephant
    20   > EOF
    60   > EOF