[PATCH] rebase: abort message should appear even with --quiet

Steve Borho steve at borho.org
Tue Oct 26 10:36:27 CDT 2010


On Tue, Oct 26, 2010 at 10:12 AM, Nicolas Dumazet <nicdumz at gmail.com> wrote:
> 2010/10/27 Steve Borho <steve at borho.org>:
>> On Tue, Oct 26, 2010 at 6:49 AM, timeless <timeless at gmail.com> wrote:
>>> # HG changeset patch
>>> # User timeless <timeless at gmail.com>
>>> # Date 1288093318 -10800
>>> # Node ID 0009d6d29ab4bc7706d8417b31fce4f57bd01c4b
>>> # Parent  850617e3a5cc060e19d03ef5601985f6920823c9
>>> rebase: abort message should appear even with --quiet
>>
>> (apologies for pseudo-hijacking this thread)
>>
>> A similar problem is that rebase reacts badly to unresolved merges.
>> It raises a util.Abort() exception rather than your typical ui.warn()
>> and exit with non-0 return code.  I think it should behave very
>> similar to the merge command when it sees unresolved files.
>>
>> Current behavior:
>>
>> abort: fix unresolved conflicts with hg resolve then run hg rebase --continue
>> [0]
>>
>> Preferred behavior:
>>
>> fix %d unresolved conflicts with hg resolve then run hg rebase --continue
>> [1]
>
> And similarly, why does rebase return with 0 with the rebase aborts?
> Do we want this?

Nope, that was my point :)

> hg help rebase specifies only 0 / 1 return status codes, 1 when
> nothing to rebase. Maybe some other codes could be introduced?

0 - success
1 - nothing to rebase
2 - rebase incomplete

"Works for Me" (tm)

-- 
Steve Borho


More information about the Mercurial-devel mailing list