tests/test-inhibit.t
changeset 1807 a53efee7d8b0
parent 1806 9f42f819267b
child 2120 e38156312410
equal deleted inserted replaced
1806:9f42f819267b 1807:a53efee7d8b0
     7   > [extensions]
     7   > [extensions]
     8   > rebase=
     8   > rebase=
     9   > strip=
     9   > strip=
    10   > EOF
    10   > EOF
    11   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
    11   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
    12   $ echo "directaccess=$(echo $(dirname $TESTDIR))/hgext/directaccess.py" >> $HGRCPATH
    12   $ echo "directaccess=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/hack/directaccess.py" >> $HGRCPATH
    13   $ echo "inhibit=$(echo $(dirname $TESTDIR))/hgext/inhibit.py" >> $HGRCPATH
    13   $ echo "inhibit=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/hack/inhibit.py" >> $HGRCPATH
    14   $ mkcommit() {
    14   $ mkcommit() {
    15   >    echo "$1" > "$1"
    15   >    echo "$1" > "$1"
    16   >    hg add "$1"
    16   >    hg add "$1"
    17   >    hg ci -m "add $1"
    17   >    hg ci -m "add $1"
    18   > }
    18   > }
   726   o  0:54ccbc537fc2 add cA
   726   o  0:54ccbc537fc2 add cA
   727   
   727   
   728   $ cat >> $HGRCPATH <<EOF
   728   $ cat >> $HGRCPATH <<EOF
   729   > [extensions]
   729   > [extensions]
   730   > EOF
   730   > EOF
   731   $ echo "inhibit=$(echo $(dirname $TESTDIR))/hgext/inhibit.py" >> $HGRCPATH
   731   $ echo "inhibit=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/hack/inhibit.py" >> $HGRCPATH
   732 
   732 
   733 Empty commit
   733 Empty commit
   734   $ hg amend
   734   $ hg amend
   735   nothing changed
   735   nothing changed
   736   [1]
   736   [1]
   779   > EOF
   779   > EOF
   780   $ hg up .
   780   $ hg up .
   781   cannot use inhibit without the direct access extension
   781   cannot use inhibit without the direct access extension
   782   (please enable it or inhibit won't work)
   782   (please enable it or inhibit won't work)
   783   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   783   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   784   $ echo "directaccess=$(echo $(dirname $TESTDIR))/hgext/directaccess.py" >> $HGRCPATH
   784   $ echo "directaccess=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/hack/directaccess.py" >> $HGRCPATH
   785   $ cd ..
   785   $ cd ..
   786 
   786 
   787 hg push should not allow directaccess unless forced with --hidden
   787 hg push should not allow directaccess unless forced with --hidden
   788 We copy the inhibhit repo to inhibit2 and make some changes to push to inhibit
   788 We copy the inhibhit repo to inhibit2 and make some changes to push to inhibit
   789 
   789