You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Perry Hutchison <pe...@pluto.rain.com> on 2014/10/10 09:53:16 UTC

overriding .subversion/config[helpers] on the command line

I have entries for diff3-cmd and merge-tool-cmd in the [helpers]
section of .subversion/config, and they seem to be working properly.
However, when running "svn merge --dry-run", I sometimes want all
merge and diff3 attempts to "fail" because I just want the report
of what files would be updated, without trying to actually merge
any files and especially without requiring any interaction.
I would prefer to specify this override on the command line rather
than having to edit, and subsequently restore, ~/.subversion/config.

It appears that I can override the diff3-cmd setting by adding
--diff3-cmd=/bin/false to the command, but when I try to do the
same thing to merge-tool-cmd (by adding --merge-tool-cmd=/bin/false)
I get an error message:

  svn: invalid option: --merge-tool-cmd=/bin/false

How do I go about overriding the merge-tool-cmd setting on the svn
command line?  I found nothing pertinent in the svn 1.6 book, nor in
the archives.

svn version 1.6.17 (r1128011) on Ubuntu 12.04, in case it matters.

Please Cc.

Re: overriding .subversion/config[helpers] on the command line

Posted by Perry Hutchison <pe...@pluto.rain.com>.
Johan Corveleyn <jc...@gmail.com> wrote:

> On Tue, Oct 14, 2014 at 5:00 AM, Perry Hutchison <pe...@pluto.rain.com> wrote:
> > Stefan Sperling <st...@elego.de> wrote:
> >> On Fri, Oct 10, 2014 at 10:27:46AM +0200, Stefan Sperling wrote:
> >> > On Fri, Oct 10, 2014 at 12:53:16AM -0700, Perry Hutchison wrote:
> >> > > ...
> >> > > It appears that I can override the diff3-cmd setting by adding
> >> > > --diff3-cmd=/bin/false to the command, but when I try to do the
> >> > > same thing to merge-tool-cmd (by adding --merge-tool-cmd=/bin/false)
> >> > > I get an error message:
> >> > >
> >> > >   svn: invalid option: --merge-tool-cmd=/bin/false
> >> > >
> >> > > How do I go about overriding the merge-tool-cmd setting on the svn
> >> > > command line?
> >> > >
> >> > > svn version 1.6.17 (r1128011) on Ubuntu 12.04, in case it matters.
> >> > >
> >> > > Please Cc.
...
>     --config-option config:helpers:merge-tool-cmd=/bin/false

Thank you, that seems to work.  At least, it does not give
an error message and the command output looks reasonable.

(I don't know how to demonstrate conclusively that it
actually set the option, because setting this is just
a precaution: I haven't actually run into a case that
invokes the merge-tool-cmd during the kind of merge
that caused the inquiry to arise.)

Re: overriding .subversion/config[helpers] on the command line

Posted by Johan Corveleyn <jc...@gmail.com>.
On Tue, Oct 14, 2014 at 5:00 AM, Perry Hutchison <pe...@pluto.rain.com> wrote:
> Stefan Sperling <st...@elego.de> wrote:
>> On Fri, Oct 10, 2014 at 10:27:46AM +0200, Stefan Sperling wrote:
>> > On Fri, Oct 10, 2014 at 12:53:16AM -0700, Perry Hutchison wrote:
>> > > ...
>> > > It appears that I can override the diff3-cmd setting by adding
>> > > --diff3-cmd=/bin/false to the command, but when I try to do the
>> > > same thing to merge-tool-cmd (by adding --merge-tool-cmd=/bin/false)
>> > > I get an error message:
>> > >
>> > >   svn: invalid option: --merge-tool-cmd=/bin/false
>> > >
>> > > How do I go about overriding the merge-tool-cmd setting on the svn
>> > > command line?
>> > >
>> > > svn version 1.6.17 (r1128011) on Ubuntu 12.04, in case it matters.
>> > >
>> > > Please Cc.
>> >
>> > Try --config-option:config:global:merge-tool-cmd=/bin/false
>>
>> Sorry, got the section name wrong:
>>   --config-option:config:helpers:merge-tool-cmd=/bin/false
>
> I wonder if that option may be new in 1.7 -- it doesn't seem to be
> recognized in 1.6.17:
>
>  svn: invalid option: --config-option:config:helpers:merge-tool-cmd=/bin/false

I think it needs to be:

    --config-option config:helpers:merge-tool-cmd=/bin/false

(i.e. a space after --config-option, not a colon)

-- 
Johan

Re: overriding .subversion/config[helpers] on the command line

Posted by Perry Hutchison <pe...@pluto.rain.com>.
Stefan Sperling <st...@elego.de> wrote:
> On Fri, Oct 10, 2014 at 10:27:46AM +0200, Stefan Sperling wrote:
> > On Fri, Oct 10, 2014 at 12:53:16AM -0700, Perry Hutchison wrote:
> > > ...
> > > It appears that I can override the diff3-cmd setting by adding
> > > --diff3-cmd=/bin/false to the command, but when I try to do the
> > > same thing to merge-tool-cmd (by adding --merge-tool-cmd=/bin/false)
> > > I get an error message:
> > > 
> > >   svn: invalid option: --merge-tool-cmd=/bin/false
> > > 
> > > How do I go about overriding the merge-tool-cmd setting on the svn
> > > command line?
> > > 
> > > svn version 1.6.17 (r1128011) on Ubuntu 12.04, in case it matters.
> > > 
> > > Please Cc.
> > 
> > Try --config-option:config:global:merge-tool-cmd=/bin/false
>
> Sorry, got the section name wrong:
>   --config-option:config:helpers:merge-tool-cmd=/bin/false

I wonder if that option may be new in 1.7 -- it doesn't seem to be
recognized in 1.6.17:

 svn: invalid option: --config-option:config:helpers:merge-tool-cmd=/bin/false

Re: overriding .subversion/config[helpers] on the command line

Posted by Stefan Sperling <st...@elego.de>.
On Fri, Oct 10, 2014 at 10:27:46AM +0200, Stefan Sperling wrote:
> On Fri, Oct 10, 2014 at 12:53:16AM -0700, Perry Hutchison wrote:
> > I have entries for diff3-cmd and merge-tool-cmd in the [helpers]
> > section of .subversion/config, and they seem to be working properly.
> > However, when running "svn merge --dry-run", I sometimes want all
> > merge and diff3 attempts to "fail" because I just want the report
> > of what files would be updated, without trying to actually merge
> > any files and especially without requiring any interaction.
> > I would prefer to specify this override on the command line rather
> > than having to edit, and subsequently restore, ~/.subversion/config.
> > 
> > It appears that I can override the diff3-cmd setting by adding
> > --diff3-cmd=/bin/false to the command, but when I try to do the
> > same thing to merge-tool-cmd (by adding --merge-tool-cmd=/bin/false)
> > I get an error message:
> > 
> >   svn: invalid option: --merge-tool-cmd=/bin/false
> > 
> > How do I go about overriding the merge-tool-cmd setting on the svn
> > command line?  I found nothing pertinent in the svn 1.6 book, nor in
> > the archives.
> > 
> > svn version 1.6.17 (r1128011) on Ubuntu 12.04, in case it matters.
> > 
> > Please Cc.
> 
> Try --config-option:config:global:merge-tool-cmd=/bin/false

Sorry, got the section name wrong:
  --config-option:config:helpers:merge-tool-cmd=/bin/false

Re: overriding .subversion/config[helpers] on the command line

Posted by Stefan Sperling <st...@elego.de>.
On Fri, Oct 10, 2014 at 12:53:16AM -0700, Perry Hutchison wrote:
> I have entries for diff3-cmd and merge-tool-cmd in the [helpers]
> section of .subversion/config, and they seem to be working properly.
> However, when running "svn merge --dry-run", I sometimes want all
> merge and diff3 attempts to "fail" because I just want the report
> of what files would be updated, without trying to actually merge
> any files and especially without requiring any interaction.
> I would prefer to specify this override on the command line rather
> than having to edit, and subsequently restore, ~/.subversion/config.
> 
> It appears that I can override the diff3-cmd setting by adding
> --diff3-cmd=/bin/false to the command, but when I try to do the
> same thing to merge-tool-cmd (by adding --merge-tool-cmd=/bin/false)
> I get an error message:
> 
>   svn: invalid option: --merge-tool-cmd=/bin/false
> 
> How do I go about overriding the merge-tool-cmd setting on the svn
> command line?  I found nothing pertinent in the svn 1.6 book, nor in
> the archives.
> 
> svn version 1.6.17 (r1128011) on Ubuntu 12.04, in case it matters.
> 
> Please Cc.

Try --config-option:config:global:merge-tool-cmd=/bin/false