shelve: rename method for data write/read
authorBoris Feld <boris.feld@octobus.net>
Tue, 29 May 2018 11:40:40 +0200
changeset 39343 bab58b1d87c7
parent 39342 d52fa7ddd1ac
child 39344 eecd68ca041d
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.
hgext/shelve.py
--- 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):