diff mercurial/changegroup.py @ 27931:1289a122cf3f stable

shelve: use cg3 for treemanifests Similar to previous change, this teaches shelve to pick the right changegroup version for repos that use treemanifests.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 19 Jan 2016 15:37:07 -0800
parents 3b2ac2115464
children ca8d2b73155d
line wrap: on
line diff
--- a/mercurial/changegroup.py	Tue Jan 19 15:38:24 2016 -0800
+++ b/mercurial/changegroup.py	Tue Jan 19 15:37:07 2016 -0800
@@ -963,7 +963,8 @@
 
 def safeversion(repo):
     # Finds the smallest version that it's safe to assume clients of the repo
-    # will support.
+    # will support. For example, all hg versions that support generaldelta also
+    # support changegroup 02.
     versions = supportedversions(repo)
     if 'generaldelta' in repo.requirements:
         versions.discard('01')