tests/test-bundle2.t
changeset 20955 12f161f08d74
parent 20952 b24ee5076b94
child 20995 e995d104c87f
equal deleted inserted replaced
20954:dba91f8060eb 20955:12f161f08d74
   140   >         ui.write('    payload: %i bytes\n' % len(p.data))
   140   >         ui.write('    payload: %i bytes\n' % len(p.data))
   141   > EOF
   141   > EOF
   142   $ cat >> $HGRCPATH << EOF
   142   $ cat >> $HGRCPATH << EOF
   143   > [extensions]
   143   > [extensions]
   144   > bundle2=$TESTTMP/bundle2.py
   144   > bundle2=$TESTTMP/bundle2.py
       
   145   > [server]
       
   146   > bundle2=True
   145   > EOF
   147   > EOF
   146 
   148 
   147 The extension requires a repo (currently unused)
   149 The extension requires a repo (currently unused)
   148 
   150 
   149   $ hg init main
   151   $ hg init main
   558   adding manifests
   560   adding manifests
   559   adding file changes
   561   adding file changes
   560   added 0 changesets with 0 changes to 3 files
   562   added 0 changesets with 0 changes to 3 files
   561   0 unread bytes
   563   0 unread bytes
   562   addchangegroup return: 1
   564   addchangegroup return: 1
       
   565 
       
   566 Real world exchange
       
   567 =====================
       
   568 
       
   569 
       
   570 clone --pull
       
   571 
       
   572   $ cd ..
       
   573   $ hg clone main other --pull --rev 9520eea781bc
       
   574   adding changesets
       
   575   adding manifests
       
   576   adding file changes
       
   577   added 2 changesets with 2 changes to 2 files
       
   578   updating to branch default
       
   579   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   580   $ hg -R other log -G
       
   581   @  changeset:   1:9520eea781bc
       
   582   |  tag:         tip
       
   583   |  user:        Nicolas Dumazet <nicdumz.commits@gmail.com>
       
   584   |  date:        Sat Apr 30 15:24:48 2011 +0200
       
   585   |  summary:     E
       
   586   |
       
   587   o  changeset:   0:cd010b8cd998
       
   588      user:        Nicolas Dumazet <nicdumz.commits@gmail.com>
       
   589      date:        Sat Apr 30 15:24:48 2011 +0200
       
   590      summary:     A
       
   591   
       
   592 
       
   593 pull
       
   594 
       
   595   $ hg -R other pull
       
   596   pulling from $TESTTMP/main (glob)
       
   597   searching for changes
       
   598   adding changesets
       
   599   adding manifests
       
   600   adding file changes
       
   601   added 7 changesets with 6 changes to 6 files (+3 heads)
       
   602   (run 'hg heads' to see heads, 'hg merge' to merge)