[PATCH RFC v8] scmutil: add a simple key-value file helper
kobalyts at outlook.com
Tue Dec 20 12:08:44 EST 2016
On 12/16/2016 6:45 PM, Augie Fackler wrote:
> On Fri, Dec 16, 2016 at 1:35 PM, Augie Fackler <raf at durin42.com> wrote:
>>> scmutil: add a simple key-value file helper
>> At this point, I think I'd like to see obs-shelve too. Is there a
>> place I can do that?
> (Specifically: before we do a resend of this, I'd like to see the
> client, so a link to a pastebin or repo where I could see a client on
> this thread would be outstanding. THanks!)
Here's a pastebin of my shelve.py: http://pastebin.com/3CYmqf2J
Please note that I haven't worked on storing the actual shelved state in
this file yet: that is a low-pri for me at the moment, but I want it to
be available for when I have time.
See obsshelvefile on line 88. The use case in shelve is very primitive -
I could just store the node in a text file and it would've been ok. But
I wanted to have a potential for growth and a way to move states of
other commands as well.
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
More information about the Mercurial-devel