Mercurial > public > mercurial-scm > hg-stable
diff tests/test-bundle2.t @ 20955:12f161f08d74
bundle2: allow pulling changegroups using bundle2
This changeset refactors the pull code to use a bundle2 when available. We keep
bundle2 disabled by default. The current code is not ready for prime time.
Ultimately we'll want to unify the API of `bunde10` and `bundle20` to have less
different code. But for now, testing the bundle2 exchange flow is an higher
priority.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 23:41:32 -0700 |
parents | b24ee5076b94 |
children | e995d104c87f |
line wrap: on
line diff
--- a/tests/test-bundle2.t Fri Apr 04 01:51:54 2014 -0700 +++ b/tests/test-bundle2.t Tue Apr 01 23:41:32 2014 -0700 @@ -142,6 +142,8 @@ $ cat >> $HGRCPATH << EOF > [extensions] > bundle2=$TESTTMP/bundle2.py + > [server] + > bundle2=True > EOF The extension requires a repo (currently unused) @@ -560,3 +562,41 @@ added 0 changesets with 0 changes to 3 files 0 unread bytes addchangegroup return: 1 + +Real world exchange +===================== + + +clone --pull + + $ cd .. + $ hg clone main other --pull --rev 9520eea781bc + adding changesets + adding manifests + adding file changes + added 2 changesets with 2 changes to 2 files + updating to branch default + 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ hg -R other log -G + @ changeset: 1:9520eea781bc + | tag: tip + | user: Nicolas Dumazet <nicdumz.commits@gmail.com> + | date: Sat Apr 30 15:24:48 2011 +0200 + | summary: E + | + o changeset: 0:cd010b8cd998 + user: Nicolas Dumazet <nicdumz.commits@gmail.com> + date: Sat Apr 30 15:24:48 2011 +0200 + summary: A + + +pull + + $ hg -R other pull + pulling from $TESTTMP/main (glob) + searching for changes + adding changesets + adding manifests + adding file changes + added 7 changesets with 6 changes to 6 files (+3 heads) + (run 'hg heads' to see heads, 'hg merge' to merge)