You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by wuzhouhui <wu...@mails.ucas.ac.cn> on 2019/12/22 03:29:35 UTC

Why option --diff and -q of svn log are mutually exclusive

Hi,

When I use

    svn log -q --diff

to display only different of every revision, the svn report error:

    svn: E205000: Try 'svn help log' for more information
    svn: E205000: 'quiet' and 'diff' options are mutually exclusive

I just don't understand why option --diff and -q are mutually exclusive?
Can we remove this limitation?


Re: Why option --diff and -q of svn log are mutually exclusive

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Branko Čibej wrote on Sun, 22 Dec 2019 07:26 +00:00:
> On 22.12.2019 04:55, Daniel Shahaf wrote:
> > wuzhouhui wrote on Sun, 22 Dec 2019 03:29 +00:00:
> >> When I use
> >>
> >>     svn log -q --diff
> >>
> >> to display only different of every revision, the svn report error:
> >>
> >>     svn: E205000: Try 'svn help log' for more information
> >>     svn: E205000: 'quiet' and 'diff' options are mutually exclusive
> >>
> >> I just don't understand why option --diff and -q are mutually exclusive?
> >> Can we remove this limitation?
> > I don't see any reason for this restriction either, and the combination
> > does seem to work, once the check is removed.  Why should this
> > restriction be kept?
> 
> I don't think there's any good reason, except perhaps for considerations
> about documenting the behaviour. 'svn log -q -v' works ... by the
> principle of least surprise, 'svn log -q --diff' should work, too.
> 
> At a glance, the help message doesn't need changing, either.

Done in r1871916.  Thanks for the suggestion.

Cheers,

Daniel

Re: Why option --diff and -q of svn log are mutually exclusive

Posted by Branko Čibej <br...@apache.org>.
On 22.12.2019 04:55, Daniel Shahaf wrote:
> wuzhouhui wrote on Sun, 22 Dec 2019 03:29 +00:00:
>> When I use
>>
>>     svn log -q --diff
>>
>> to display only different of every revision, the svn report error:
>>
>>     svn: E205000: Try 'svn help log' for more information
>>     svn: E205000: 'quiet' and 'diff' options are mutually exclusive
>>
>> I just don't understand why option --diff and -q are mutually exclusive?
>> Can we remove this limitation?
> I don't see any reason for this restriction either, and the combination
> does seem to work, once the check is removed.  Why should this
> restriction be kept?

I don't think there's any good reason, except perhaps for considerations
about documenting the behaviour. 'svn log -q -v' works ... by the
principle of least surprise, 'svn log -q --diff' should work, too.

At a glance, the help message doesn't need changing, either.

-- Brane


Re: Why option --diff and -q of svn log are mutually exclusive

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
wuzhouhui wrote on Sun, 22 Dec 2019 03:29 +00:00:
> When I use
> 
>     svn log -q --diff
> 
> to display only different of every revision, the svn report error:
> 
>     svn: E205000: Try 'svn help log' for more information
>     svn: E205000: 'quiet' and 'diff' options are mutually exclusive
> 
> I just don't understand why option --diff and -q are mutually exclusive?
> Can we remove this limitation?

I don't see any reason for this restriction either, and the combination
does seem to work, once the check is removed.  Why should this
restriction be kept?