changeset 26709:42733e956887

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.
author Augie Fackler <augie@google.com>
date Tue, 29 Sep 2015 15:14:03 -0400
parents 749d913f24b8
children 730f328624ab
files mercurial/changegroup.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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':