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.
--- a/hgext/shelve.py Thu Aug 23 00:51:38 2018 +0200
+++ b/hgext/shelve.py Tue May 29 11:40:40 2018 +0200
@@ -168,10 +168,10 @@
bundle2.writebundle(self.ui, cg, self.fname, btype, self.vfs,
compression=compression)
- def writeobsshelveinfo(self, info):
+ def writeinfo(self, info):
scmutil.simplekeyvaluefile(self.vfs, self.fname).write(info)
- def readobsshelveinfo(self):
+ def readinfo(self):
return scmutil.simplekeyvaluefile(self.vfs, self.fname).read()
class shelvedstate(object):