comparison hgext/evolve.py @ 1465:777e5c369d99 stable

compat: use svfs instead of sopener The "new" attribute is about 2 years old so let's move on.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 29 Jun 2015 02:30:27 -0700
parents d830d4e9f212
children a433948ca8d2
comparison
equal deleted inserted replaced
1464:d830d4e9f212 1465:777e5c369d99
3334 '') 3334 '')
3335 def debugobsconvert(ui, repo, new_format): 3335 def debugobsconvert(ui, repo, new_format):
3336 if new_format == repo.obsstore._version: 3336 if new_format == repo.obsstore._version:
3337 msg = _('New format is the same as the old format, not upgrading!') 3337 msg = _('New format is the same as the old format, not upgrading!')
3338 raise util.Abort(msg) 3338 raise util.Abort(msg)
3339 f = repo.sopener('obsstore', 'wb', atomictemp=True) 3339 f = repo.svfs('obsstore', 'wb', atomictemp=True)
3340 origmarkers = repo.obsstore._all 3340 origmarkers = repo.obsstore._all
3341 known = set() 3341 known = set()
3342 markers = [] 3342 markers = []
3343 for m in origmarkers: 3343 for m in origmarkers:
3344 # filter out invalid markers 3344 # filter out invalid markers