Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 27751:a40e2f7fe49d
changegroup: hide packermap behind methods
This is to prepare for hiding changegroup3 behind a config option.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 12 Jan 2016 21:01:06 -0800 |
parents | 294037159c64 |
children | 0ac5b7ee5dc2 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jan 13 15:47:37 2016 -0600 +++ b/mercurial/commands.py Tue Jan 12 21:01:06 2016 -0800 @@ -2078,7 +2078,7 @@ ui.write('%s -- %r\n' % (part.type, repr(part.params))) if part.type == 'changegroup': version = part.params.get('version', '01') - cg = changegroup.packermap[version][1](part, 'UN') + cg = changegroup.getunbundler(version, part, 'UN') chunkdata = cg.changelogheader() chain = None while True: