hg resolve
Christian Boos
cboos at neuf.fr
Fri Dec 19 05:47:58 CST 2008
Peter Arrenbrecht wrote:
> On Thu, Dec 18, 2008 at 6:26 PM, Matt Mackall <mpm at selenic.com> wrote:
>
>> On Fri, 2008-12-12 at 15:31 -0800, Peter Loron wrote:
>>
>>> On Dec 10, 2008, at 4:36 PM, TK Soh wrote:
>>>
>>>
>>>> On Wed, Dec 10, 2008 at 3:54 PM, Peter Arrenbrecht
>>>> <peter.arrenbrecht at gmail.com> wrote:
>>>>
>>>>> On Wed, Dec 10, 2008 at 11:11 AM, Leslie P. Polzer
>>>>> <sky at viridian-project.de> wrote:
>>>>>
>>>>>> Second issue, related: resolve without any arguments will
>>>>>> just overwrite a fixed conflict, discarding any changes
>>>>>> made.
>>>>>>
>>>>>> It should warn/ask the user interactively whether they
>>>>>> really want to do that. Alternative: no default behaviour
>>>>>> at all and a new switch that will restore the original
>>>>>> conflicts.
>>>>>>
>>>>> +1. This has bitten me more than once, too. But maybe it's too late
>>>>> for removing the default (backward compat rules).
>>>>>
>>>> If the rules have to be broken, it's better to do it while 1.1 is
>>>> still 'warm'.
>>>>
>>> +2 This would be a very good change.
>>>
>> Sorry, you only get one vote.
>>
>> We plan to add a new -a switch analogous to revert's.
>>
>
> But no change to the default behaviour, meaning `hg resolve the/file`
> will clobber any manual resolving I've already done when I meant to
> say `hg resolve -m the/file`?
>
I would further emphasize that this is especially error prone for those
using both svn and hg. As you'd write `svn resolved` in Subversion for
marking as resolved, you are tempted to do the same in Mercurial and
forget about the '-m' option. I've added a "resolved" alias in order to
cope with this, but I fully agree that "hg resolve the/file" being
destructive is a bit dangerous.
-- Christian
More information about the Mercurial
mailing list