[PATCH V2] shelve: add -n/--name option to unshelve (issue5475)

Pulkit Goyal 7895pulkit at gmail.com
Sun Feb 19 12:45:51 EST 2017


On Sun, Feb 19, 2017 at 8:51 PM, liscju <piotr.listkiewicz at gmail.com> wrote:

> # HG changeset patch
> # User liscju <piotr.listkiewicz at gmail.com>
> # Date 1487498168 -3600
> #      Sun Feb 19 10:56:08 2017 +0100
> # Node ID f89322e6f48bfe709f759abe71e39fba06f06632
> # Parent  01eebb65a61d9edcad1665ed747c7092f1ddb8b9
> shelve: add -n/--name option to unshelve (issue5475)
>
> This makes using shelve/unshelve more consistent because
> shelving can be done using name option and unshelving as
> well. Author of the idea of this improvement and solution is
> joshgold.
>
> diff --git a/hgext/shelve.py b/hgext/shelve.py
> --- a/hgext/shelve.py
> +++ b/hgext/shelve.py
> @@ -747,10 +747,12 @@ def _checkunshelveuntrackedproblems(ui,
>             _('continue an incomplete unshelve operation')),
>            ('k', 'keep', None,
>             _('keep shelve after unshelving')),
> +          ('n', 'name', '',
> +           _('use the given name for the shelved commit'), _('NAME')),
>
​
This should be changed to something like "unshelve this named shelve".​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170219/a18f30d8/attachment.html>


More information about the Mercurial-devel mailing list