Mercurial > hg
comparison hgext/shelve.py @ 39343:bab58b1d87c7
shelve: rename method for data write/read
There are no user of this code nor any code related to obsshelve in the
extensions right now, so we rename the function before using them.
Note: The shelvedfile looks a bit strange. We should probably refactor it,
however, this is an adventure for another series.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 29 May 2018 11:40:40 +0200 |
parents | d52fa7ddd1ac |
children | eecd68ca041d |
comparison
equal
deleted
inserted
replaced
39342:d52fa7ddd1ac | 39343:bab58b1d87c7 |
---|---|
166 'shelve') | 166 'shelve') |
167 | 167 |
168 bundle2.writebundle(self.ui, cg, self.fname, btype, self.vfs, | 168 bundle2.writebundle(self.ui, cg, self.fname, btype, self.vfs, |
169 compression=compression) | 169 compression=compression) |
170 | 170 |
171 def writeobsshelveinfo(self, info): | 171 def writeinfo(self, info): |
172 scmutil.simplekeyvaluefile(self.vfs, self.fname).write(info) | 172 scmutil.simplekeyvaluefile(self.vfs, self.fname).write(info) |
173 | 173 |
174 def readobsshelveinfo(self): | 174 def readinfo(self): |
175 return scmutil.simplekeyvaluefile(self.vfs, self.fname).read() | 175 return scmutil.simplekeyvaluefile(self.vfs, self.fname).read() |
176 | 176 |
177 class shelvedstate(object): | 177 class shelvedstate(object): |
178 """Handle persistence during unshelving operations. | 178 """Handle persistence during unshelving operations. |
179 | 179 |