[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Bug and Fatal Error
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] Bug and Fatal Error |
Date: |
Sat, 22 Jan 2011 12:33:35 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) |
Thomas Keller <address@hidden> writes:
> Am 22.01.11 04:21, schrieb Aaron W. Hsu:
>> Hello,
>>
>> I am reporting the following error when I call monotone incorrectly with
>> the following command in a workspace:
>>
>> $ mtn push -b <branch>
>> mtn: fatal: error: option.cc:462: I(!is_cancel)
>
> This is an interesting corner case of the new option name completion
> code which appeared in 0.99. The "b" of "-b" is tried to be completed
> and since push has no other options that start with "b", it only matches
> the global option "builtin-rcfile", which is the "cancel" version of
> "no-builtin-rcfile".
>
> I see several different solutions for this nuisance:
>
> 1) Remove the invariant there, i.e. allow single letter options
> be completed to cancel options
> 2) Only complete on "--b", but not on "-b"
> 3) Only complete when at least two letters are given
>
> Has anybody preferences?
2) makes sense; a single dash means a single letter option, so there is
nothing to complete.
--
-- Stephe