[PATCH] shelve: adds restoring newly created branch (issue5048)

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Feb 29 12:17:19 EST 2016



On 02/29/2016 09:56 AM, Piotr Listkiewicz wrote:
>         So only in bare shelve restoring branch should take place?
>
>     That's a proposal, lets sleep on it and see what other people think
>     about it.
>
>
> Does 'bare shelve' is shelve without specifying files/filesets?
>
> If so, i have a problem with implementation. Probably the place to store
> if shelve was 'bare' is .hg bundle file for given shelve or new bundle
> file. In both cases i have no idea how to write this information in it.
>
> Other idea would be to store this information in the new text file but
> this seems like total overkill.

We only shelve (store + remove from wc) if no pattern/selection is issued.

That does not requires to store "bare shelve" in the file format, just 
control when you shelve the branch change. Something you seems to be 
already able to do.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list