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

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 Accepted
Headers show


Boris Feld - June 7, 2018, 2:11 p.m.
# HG changeset patch
# User Boris Feld <>
# Date 1527586840 -7200
#      Tue May 29 11:40:40 2018 +0200
# Node ID 07ea539a1b3439a381da208f154b7b276baea966
# Parent  49bb8db412ebe0580d1a2d65edb218cf738f6bde
# EXP-Topic internal-phase
# Available At
#              hg pull -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.


diff --git a/hgext/ b/hgext/
--- a/hgext/
+++ b/hgext/
@@ -167,10 +167,10 @@  class shelvedfile(object):
         bundle2.writebundle(self.ui, cg, self.fname, btype, self.vfs,
-    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):