# HG changeset patch # User Yuya Nishihara # Date 1442842244 -32400 # Node ID 6f574c76c1424a0c20c6366448037b82d3733832 # Parent a55c691f4cc0b960a02bc94b3296403524c8db84 debugobsconvert: make sure obsstore is loaded before version comparison hg 44918682093f delays loading obsstore, so we have to access _all to get the correct store version. diff -r a55c691f4cc0 -r 6f574c76c142 hgext/evolve.py --- a/hgext/evolve.py Wed Sep 16 16:50:06 2015 -0700 +++ b/hgext/evolve.py Mon Sep 21 22:30:44 2015 +0900 @@ -3496,11 +3496,11 @@ [('', 'new-format', _bestformat, _('Destination format for markers.'))], '') def debugobsconvert(ui, repo, new_format): + origmarkers = repo.obsstore._all # settle version if new_format == repo.obsstore._version: msg = _('New format is the same as the old format, not upgrading!') raise util.Abort(msg) f = repo.svfs('obsstore', 'wb', atomictemp=True) - origmarkers = repo.obsstore._all known = set() markers = [] for m in origmarkers: