[PATCH] shelve: allow multiple shelves with --patch and --stat
Augie Fackler
raf at durin42.com
Sun Jan 15 22:40:28 UTC 2017
> On Jan 15, 2017, at 1:58 PM, Pulkit Goyal <7895pulkit at gmail.com> wrote:
>
>>> diff -r e9bc34f57537 -r 9dc4d056d85a hgext/shelve.py
>>> --- a/hgext/shelve.py Sun Jan 08 10:08:29 2017 +0800
>>> +++ b/hgext/shelve.py Sat Jan 14 01:23:07 2017 +0530
>>> @@ -523,13 +523,13 @@
>>> ui.write(chunk, label=label)
>>>
>>> def singlepatchcmds(ui, repo, pats, opts, subcommand):
>>
>> ...but then it's not about "single patch" anymore.
>
> Yeah but I was afraid that this function might be used anywehere else.
> Though `grep` tells me that it's not but I tried to be on safe side.
>>
>>> - """subcommand that displays a single shelf"""
>>> - if len(pats) != 1:
>>> - raise error.Abort(_("--%s expects a single shelf") % subcommand)
>>> - shelfname = pats[0]
>>> + """subcommand that displays shelves"""
>>> + if len(pats) == 0:
>>> + raise error.Abort(_("--%s expects atleast one shelf") % subcommand)
>>
>> "At least."
>
> I will send a V2 if there are no more problems in this.
I’d go ahead and send v2.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list