# HG changeset patch # User Augie Fackler # Date 2015-09-29 19:14:03 # Node ID 42733e956887b68f4e53dac854232230c77b1d7f # Parent 749d913f24b86e3b5b9728de661fa693a20bb312 changegroup: reformat packermap and add comment I'm about to add a cg3, and it seems prudent to annotate what formats support what features. It strikes me that we may want to consider moving to a more feature-oriented model in the future, but we'll see how that looks in a little while I guess. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -776,7 +776,9 @@ class cg2packer(cg1packer): return struct.pack(self.deltaheader, node, p1n, p2n, basenode, linknode) packermap = {'01': (cg1packer, cg1unpacker), - '02': (cg2packer, cg2unpacker)} + # cg2 adds support for exchanging generaldelta + '02': (cg2packer, cg2unpacker), +} def _changegroupinfo(repo, nodes, source): if repo.ui.verbose or source == 'bundle':