mercurial/changegroup.py
changeset 34257 2844c4bd5a39
parent 34149 75cc1f1e11f2
parent 34144 91f0677dc920
child 34291 1db9abf407c5
--- 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