Patchwork [17,of,25,RFC] shelve: rename method for data write/read

login
register
mail settings
Submitter Boris Feld
Date June 7, 2018, 2:11 p.m.
Message ID <07ea539a1b3439a381da.1528380676@Laptop-Boris.lan>
Download mbox | patch
Permalink /patch/32011/
State New
Headers show

Comments

Boris Feld - June 7, 2018, 2:11 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1527586840 -7200
#      Tue May 29 11:40:40 2018 +0200
# Node ID 07ea539a1b3439a381da208f154b7b276baea966
# Parent  49bb8db412ebe0580d1a2d65edb218cf738f6bde
# EXP-Topic internal-phase
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 07ea539a1b34
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.

Patch

diff --git a/hgext/shelve.py b/hgext/shelve.py
--- a/hgext/shelve.py
+++ b/hgext/shelve.py
@@ -167,10 +167,10 @@  class shelvedfile(object):
         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):