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

Yuya Nishihara yuya at tcha.org
Mon Feb 22 10:28:51 EST 2016


On Mon, 22 Feb 2016 16:13:43 +0100, Piotr Listkiewicz wrote:
> > Can it be a single "branch-name-should-be-set" field? I feel the string
> > 'True'
> > is a bit ugly.
> 
>  Could you be more descriptive, i have no idea how should it be done more
> properly.

I meant it could be ''|newbranch instead of (restorebranch, origshelvebranch)
pair.

That said, histedit saves boolean as 'True' or 'False', so it would be okay
to store "restorebranch" as a string if it makes things easy.

> > Perhaps we'd better to say "marked working directory as branch %s" again.
> 
> Just ui.write("marked working directory as branch %s" % origshelvebranch)
> would be ok?

ui.status(_(...)). See commands.branch().


More information about the Mercurial-devel mailing list