tests/test-ssh.t
branchstable
changeset 13469 07a6460f829a
parent 13464 da0ddd62b9d8
child 13604 3f6a4579f803
child 13693 adf3c4401c5d
equal deleted inserted replaced
13468:d100702326d5 13469:07a6460f829a
    37   $ echo this > fooO
    37   $ echo this > fooO
    38   $ hg ci -A -m "init" foo fooO
    38   $ hg ci -A -m "init" foo fooO
    39   $ echo <<EOF > .hg/hgrc
    39   $ echo <<EOF > .hg/hgrc
    40   > [server]
    40   > [server]
    41   > uncompressed = True
    41   > uncompressed = True
    42   > 
       
    43   > [extensions]
       
    44   > bookmarks =
       
    45   > 
    42   > 
    46   > [hooks]
    43   > [hooks]
    47   > changegroup = python "$TESTDIR"/printenv.py changegroup-in-remote 0 ../dummylog
    44   > changegroup = python "$TESTDIR"/printenv.py changegroup-in-remote 0 ../dummylog
    48   > EOF
    45   > EOF
    49   $ cd ..
    46   $ cd ..
   119 updating rc
   116 updating rc
   120 
   117 
   121   $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc
   118   $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc
   122   $ echo "[ui]" >> .hg/hgrc
   119   $ echo "[ui]" >> .hg/hgrc
   123   $ echo "ssh = python ../dummyssh" >> .hg/hgrc
   120   $ echo "ssh = python ../dummyssh" >> .hg/hgrc
   124   $ echo '[extensions]' >> .hg/hgrc
       
   125   $ echo 'bookmarks =' >> .hg/hgrc
       
   126 
   121 
   127 find outgoing
   122 find outgoing
   128 
   123 
   129   $ hg out ssh://user@dummy/remote
   124   $ hg out ssh://user@dummy/remote
   130   comparing with ssh://user@dummy/remote
   125   comparing with ssh://user@dummy/remote
   193   created new head
   188   created new head
   194 
   189 
   195 test pushkeys and bookmarks
   190 test pushkeys and bookmarks
   196 
   191 
   197   $ cd ../local
   192   $ cd ../local
   198   $ echo '[extensions]' >> ../remote/.hg/hgrc
       
   199   $ echo 'bookmarks =' >> ../remote/.hg/hgrc
       
   200   $ hg debugpushkey --config ui.ssh="python ../dummyssh" ssh://user@dummy/remote namespaces
   193   $ hg debugpushkey --config ui.ssh="python ../dummyssh" ssh://user@dummy/remote namespaces
   201   bookmarks	
   194   bookmarks	
   202   namespaces	
   195   namespaces	
   203   $ hg book foo -r 0
   196   $ hg book foo -r 0
   204   $ hg out -B
   197   $ hg out -B