Mercurial > hg-stable
diff mercurial/bundle2.py @ 21062:e7c0a65a5c9c
bundle2: use headerless HG10UN stream in changegroup
Using `readbundle` in the part handlers creates a circular import hell. We are
now using a simple `HG10UN` stream with no header. Some parameters may
later be introduced on the part to change parameter.
Producers are updated as well.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 14 Apr 2014 14:46:32 -0400 |
parents | 0bea9db7543b |
children | 5ecfe76d0d96 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Thu Apr 10 10:53:43 2014 -0700 +++ b/mercurial/bundle2.py Mon Apr 14 14:46:32 2014 -0400 @@ -639,7 +639,7 @@ # we need to make sure we trigger the creation of a transaction object used # for the whole processing scope. op.gettransaction() - cg = changegroup.readbundle(inpart, 'bundle2part') + cg = changegroup.unbundle10(inpart, 'UN') ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2') op.records.add('changegroup', {'return': ret}) if op.reply is not None: