Mercurial > evolve
comparison hgext/inhibit.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 | 9c3ba42c582a |
children | a8a4c8b8550d |
comparison
equal
deleted
inserted
replaced
1464:d830d4e9f212 | 1465:777e5c369d99 |
---|---|
34 | 34 |
35 @localrepo.storecache('obsinhibit') | 35 @localrepo.storecache('obsinhibit') |
36 def _obsinhibit(self): | 36 def _obsinhibit(self): |
37 # XXX we should make sure it is invalidated by transaction failure | 37 # XXX we should make sure it is invalidated by transaction failure |
38 obsinhibit = set() | 38 obsinhibit = set() |
39 raw = self.sopener.tryread('obsinhibit') | 39 raw = self.svfs.tryread('obsinhibit') |
40 for i in xrange(0, len(raw), 20): | 40 for i in xrange(0, len(raw), 20): |
41 obsinhibit.add(raw[i:i+20]) | 41 obsinhibit.add(raw[i:i+20]) |
42 return obsinhibit | 42 return obsinhibit |
43 | 43 |
44 def commit(self, *args, **kwargs): | 44 def commit(self, *args, **kwargs): |