changegroup: reformat packermap and add comment
authorAugie Fackler <augie@google.com>
Tue, 29 Sep 2015 15:14:03 -0400
changeset 26709 42733e956887
parent 26708 749d913f24b8
child 26710 730f328624ab
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.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Wed Oct 14 12:05:27 2015 -0400
+++ b/mercurial/changegroup.py	Tue Sep 29 15:14:03 2015 -0400
@@ -776,7 +776,9 @@
         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':