mercurial/changegroup.py
branchstable
changeset 34144 91f0677dc920
parent 33461 bb72031f0ea8
child 34257 2844c4bd5a39
equal deleted inserted replaced
34143:b5d7e7d5c573 34144:91f0677dc920
   870         # support versions 01 and 02.
   870         # support versions 01 and 02.
   871         versions.discard('01')
   871         versions.discard('01')
   872         versions.discard('02')
   872         versions.discard('02')
   873     return versions
   873     return versions
   874 
   874 
       
   875 def localversion(repo):
       
   876     # Finds the best version to use for bundles that are meant to be used
       
   877     # locally, such as those from strip and shelve, and temporary bundles.
       
   878     return max(supportedoutgoingversions(repo))
       
   879 
   875 def safeversion(repo):
   880 def safeversion(repo):
   876     # Finds the smallest version that it's safe to assume clients of the repo
   881     # Finds the smallest version that it's safe to assume clients of the repo
   877     # will support. For example, all hg versions that support generaldelta also
   882     # will support. For example, all hg versions that support generaldelta also
   878     # support changegroup 02.
   883     # support changegroup 02.
   879     versions = supportedoutgoingversions(repo)
   884     versions = supportedoutgoingversions(repo)