diff mercurial/changegroup.py @ 34264:2844c4bd5a39

merge with stable
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Mon, 18 Sep 2017 14:12:20 -0500
parents 75cc1f1e11f2 91f0677dc920
children 1db9abf407c5
line wrap: on
line diff
--- a/mercurial/changegroup.py	Sun Sep 17 12:39:53 2017 +0900
+++ b/mercurial/changegroup.py	Mon Sep 18 14:12:20 2017 -0500
@@ -915,6 +915,11 @@
         versions.discard('02')
     return versions
 
+def localversion(repo):
+    # Finds the best version to use for bundles that are meant to be used
+    # locally, such as those from strip and shelve, and temporary bundles.
+    return max(supportedoutgoingversions(repo))
+
 def safeversion(repo):
     # Finds the smallest version that it's safe to assume clients of the repo
     # will support. For example, all hg versions that support generaldelta also