Mercurial > hg-stable
changeset 39370: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 |
files | hgext/shelve.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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):