hgext/evolve.py
changeset 1507 6f574c76c142
parent 1506 a55c691f4cc0
child 1509 405be3783fbc
--- 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: