tests/test-contrib-perf.t
changeset 27309 b0de270acd17
parent 27286 528cf1a73ae5
child 27315 be48b7559422
equal deleted inserted replaced
27308:7bc52ac46172 27309:b0de270acd17
     2 
     2 
     3 Set vars:
     3 Set vars:
     4 
     4 
     5   $ CONTRIBDIR="$TESTDIR/../contrib"
     5   $ CONTRIBDIR="$TESTDIR/../contrib"
     6 
     6 
     7 Prepare repo-a:
     7 Prepare repo:
     8 
     8 
     9   $ hg init repo-a
     9   $ hg init
    10   $ cd repo-a
       
    11 
    10 
    12   $ echo this is file a > a
    11   $ echo this is file a > a
    13   $ hg add a
    12   $ hg add a
    14   $ hg commit -m first
    13   $ hg commit -m first
    15 
    14 
    28   $ hg up -r 2
    27   $ hg up -r 2
    29   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    28   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    30 
    29 
    31 perfstatus
    30 perfstatus
    32 
    31 
    33   $ cat > .hg/hgrc << EOF
    32   $ cat >> $HGRCPATH << EOF
    34   > [extensions]
    33   > [extensions]
    35   > perfstatusext=$CONTRIBDIR/perf.py
    34   > perfstatusext=$CONTRIBDIR/perf.py
    36   > EOF
    35   > EOF
    37   $ hg help perfstatusext
    36   $ hg help perfstatusext
    38   perfstatusext extension - helper extension to measure performance
    37   perfstatusext extension - helper extension to measure performance