question on mergemaster
rihad at mail.ru
Mon Jan 19 09:38:35 PST 2004
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
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
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.
More information about the freebsd-current