diff -r ebe3d0095c69 -r 2844c4bd5a39 mercurial/changegroup.py --- 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