Re: question on mergemaster

From: rihad <rihad_at_mail.ru>
Date: Mon, 19 Jan 2004 21:41:15 +0400
Bill Moran wrote:

> rihad wrote:
>
>> Hi. I was wondering if there are any improvements planned to be made to
>> mergemaster? After today's cvsup I had to sit and keep pressing either
>> "q" (to break out of the pager) or "i" to accept the new file. This *is*
>> boring, considering there seemed to be no end to them and I eventually
>> killed mergemaster, because I had started to get nervous and make silly
>> typos :). It's just my toy home machine and there's only few files under
>> /etc that I care about, and these mergemaster doesn't touch anyway (like
>> fstab, rc.conf etc). Wouldn't it be great if one could add the "assume
>> yes" flag so that it overwrites without prompting (like gentoo's
>> etc-update does when you ask it). Currently I came up with this dirty
>> hack to save myself from hundreds of confirmations, it kind of worked:
>>
>> # ( echo d; while :; do echo -e "q\ni"; done ) | mergemaster -i
>>
>> Is such an "no-prompt" option considered important enough to be
>> integrated RSN or am I missing some obvious and convenient usage pattern
>> everyone know about?
>>
>> Thanks in advance and sorry if this is a bit offtopic.
>
>
> I'm going to chime in because this has hung over my head for a while.
>
> I've considered writing and submitting a patch to mergemaster to do this
> since the first time I used it.  The biggest problem with lookin at
> _every_ file is that it makes the user more prone to error as the tedium
> bores him.  Obviously, a switch the simply updates everything is
> pretty much guaranteed to screw somebody! so that's not a good idea
> either.

[snip]

Well, I still think adding the "overwrite" switch would be the Right 
Thing, since it's so basic and provides the necessary mechanism around 
which to build policies later.

Then there's the sysutils/etcmerge port that claims to be the 
all-singing-all-dancing solution to the merging problem, I wish it were 
a bit easier to use. Last time I tried, I eventually fried my /etc, 
thank God I did a last minute backup ;) Any brave soul out there to take 
on the task of merging [sic] the good ideas found in etcmerge into the 
base mergemaster?

If the file hasn't been touched by user since previous update, overwrite it.
If the file doesn't already exist, create it.
If the file exists only in /etc, ask whether to delete it.
Received on Mon Jan 19 2004 - 08:38:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:39 UTC