Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 33042:3e102a8dd52c
bundle2: record changegroup data in 'op.records' (API)
When adding support for bundling and unbundling phases, it will be
useful to have the list of added changesets. To do that, we return the
list from changegroup.apply().
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 16 Jun 2017 16:56:16 -0700 |
parents | b08431e1b062 |
children | 52c7060b707a |
line wrap: on
line diff
--- a/mercurial/changegroup.py Thu Jun 22 10:15:15 2017 -0700 +++ b/mercurial/changegroup.py Fri Jun 16 16:56:16 2017 -0700 @@ -426,9 +426,10 @@ repo.ui.flush() # never return 0 here: if deltaheads < 0: - return deltaheads - 1 + ret = deltaheads - 1 else: - return deltaheads + 1 + ret = deltaheads + 1 + return ret, added class cg2unpacker(cg1unpacker): """Unpacker for cg2 streams.