[PATCH 1 of 2 V3] shelve: make bare shelve not preserving newly created branch

Yuya Nishihara yuya at tcha.org
Wed Mar 9 09:12:33 EST 2016


On Tue, 8 Mar 2016 17:14:52 +0100, Piotr Listkiewicz wrote:
> > Also, if "hg shelve FILE" doesn't remember the branch change, the working
> > branch should stay unchanged. Perhaps we'll need an in-memory commit stuff.
> 
>  Do you think this is the best solution to the problem? Where can i find
> examples of in-memory commit stuff?

Hmm, looks like histedit.py uses memctx. I don't know if memctx is the best
way here. Perhaps Sean can give more information.

> BTW can anybody explained me whats wrong with changing current working
> directory branch if its gonna to be save to bundle and and "discarded" in
> update to parent?

I think in-memory change is way cleaner than writing temporary data to
dirstate.

As I said before, this isn't a blocker of the next patch. You can fix it later.


More information about the Mercurial-devel mailing list