Mercurial > evolve
diff hgext/obsolete.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 | a307eea46f96 |
children | e47dda53a5c2 |
line wrap: on
line diff
--- a/hgext/obsolete.py Fri Jun 26 00:59:22 2015 -0700 +++ b/hgext/obsolete.py Mon Jun 29 02:30:27 2015 -0700 @@ -48,7 +48,7 @@ else: data = repo.opener.tryread('obsolete-relations') if not data: - data = repo.sopener.tryread('obsoletemarkers') + data = repo.svfs.tryread('obsoletemarkers') if data: raise util.Abort('old format of obsolete marker detected!\n' 'run `hg debugconvertobsolete` once.') @@ -110,7 +110,7 @@ except IOError: pass ### second (json) format - data = repo.sopener.tryread('obsoletemarkers') + data = repo.svfs.tryread('obsoletemarkers') if data: some = True for oldmark in json.loads(data):