You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by we...@tigris.org on 2009/05/06 09:16:25 UTC

RE: Re: [Patch]: [Issue 2367] get rid of "... | N lines" slot in log message header

Hi,

Karl:
> Thanks for the patch -- but you may have missed the big thing about
> this issue: that the change can't be made before 2.0, because of
> interface promises.  (Anyway, we'd have to discuss it a lot to change
> it before then.)  That's why the issue is set so far in the future.

Is there an estimated date for 2.0? Even if the "line" string is bearable noise for the user, "svn log" still lacks a short summary of the size of a commit in the style of cvs log "line" field.

Couldn't we provide this kind of information by just an extra option to svn log so that compatibility is preserved?

Hugo Herbelin

PS: I may have missed other discussion threads. I apologize in case this issue has already been addressed elsewhere.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2078760

RE: Re: [Patch]: [Issue 2367] get rid of "... | N lines" slot in log message header

Posted by we...@tigris.org.
Hi,

Indeed, I'm doing a crediting job on some project and I need to easily detect what are the significant commits in term of size.

I could probably do something by running a script computing diffstat on each of the 12000 commits that we have (whatever the time it'll take!). Thanks for pointing out this to me.

> >I could see a post-commit hook computing that info tho...
> 
> We use one (available on request). This information is very useful to
> give a rough idea of how big a change is, and can compactly be presented
> in a table summarising changes.

I'm interested in looking at your post-commit hook to have an idea on how to proceed but it won't work retroactively on the old commits, will it?

Thanks for all your comments.

Hugo Herbelin (Hugo.Herbelin@inria.fr)

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2164715

Re: [Patch]: [Issue 2367] get rid of "... | N lines" slot in log message header

Posted by Mattias Engdegård <ma...@virtutech.se>.
>> $ svn diff -c12345 | diffstat

>Sure, but I think he's looking for a quick summary as part of the 'svn
>log' output. That diff command over all changed files is relatively
>expensive.

It will also give incorrect results - it does not include files in
removed directories, only (inconsistently) files removed from
directories that were kept (issues 2333 and 2524).

>I could see a post-commit hook computing that info tho...

We use one (available on request). This information is very useful to
give a rough idea of how big a change is, and can compactly be presented
in a table summarising changes.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2083562

Re: [Patch]: [Issue 2367] get rid of "... | N lines" slot in log message header

Posted by Greg Stein <gs...@gmail.com>.
On Wed, May 6, 2009 at 14:46, Hyrum K. Wright
<hy...@mail.utexas.edu> wrote:
>
> On May 6, 2009, at 4:45 AM, Greg Stein wrote:
>
>> On Wed, May 6, 2009 at 11:16,  <we...@tigris.org> wrote:
>>>
>>> Hi,
>>>
>>> Karl:
>>>>
>>>> Thanks for the patch -- but you may have missed the big thing about
>>>> this issue: that the change can't be made before 2.0, because of
>>>> interface promises.  (Anyway, we'd have to discuss it a lot to change
>>>> it before then.)  That's why the issue is set so far in the future.
>>>
>>> Is there an estimated date for 2.0? Even if the "line" string is bearable
>>> noise for the user, "svn log" still lacks a short summary of the size of a
>>> commit in the style of cvs log "line" field.
>>
>> We have no thoughts on 2.0 at all. That would break compatibility with
>> a huge ecosystem of tools built upon Subversion. Nobody wants to rock
>> the boat that hard, and I don't think it would really be all that
>> great for end-users losing much of their toolset that way.
>>
>>> Couldn't we provide this kind of information by just an extra option to
>>> svn log so that compatibility is preserved?
>>
>> We could, yes. The problem is that we store changes differently from
>> CVS. There is no simple "it changed N lines and added N lines" for a
>> given change (because we do binary deltas -- character by character;
>> we'd have to reconstruct files to detect line-based changes). CVS does
>> this file by file, but we'd want to summarize the whole revision, so
>> we'd have to total these deltas across all files touched by the
>> commit.
>
> I'm not completely familiar with CVS log output, but if you're looking for
> "number of lines added, number of lines removed" type of output, I'd think
> 'svn diff' piped to 'diffstat' would work.  Something like:
>
> $ svn diff -c12345 | diffstat

Sure, but I think he's looking for a quick summary as part of the 'svn
log' output. That diff command over all changed files is relatively
expensive.

I could see a post-commit hook computing that info tho...

Cheers,
-g

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2080527


Re: [Patch]: [Issue 2367] get rid of "... | N lines" slot in log message header

Posted by "Hyrum K. Wright" <hy...@hyrumwright.org>.
On May 6, 2009, at 4:45 AM, Greg Stein wrote:

> On Wed, May 6, 2009 at 11:16,  <we...@tigris.org> wrote:
>> Hi,
>>
>> Karl:
>>> Thanks for the patch -- but you may have missed the big thing about
>>> this issue: that the change can't be made before 2.0, because of
>>> interface promises.  (Anyway, we'd have to discuss it a lot to  
>>> change
>>> it before then.)  That's why the issue is set so far in the future.
>>
>> Is there an estimated date for 2.0? Even if the "line" string is  
>> bearable noise for the user, "svn log" still lacks a short summary  
>> of the size of a commit in the style of cvs log "line" field.
>
> We have no thoughts on 2.0 at all. That would break compatibility with
> a huge ecosystem of tools built upon Subversion. Nobody wants to rock
> the boat that hard, and I don't think it would really be all that
> great for end-users losing much of their toolset that way.
>
>> Couldn't we provide this kind of information by just an extra  
>> option to svn log so that compatibility is preserved?
>
> We could, yes. The problem is that we store changes differently from
> CVS. There is no simple "it changed N lines and added N lines" for a
> given change (because we do binary deltas -- character by character;
> we'd have to reconstruct files to detect line-based changes). CVS does
> this file by file, but we'd want to summarize the whole revision, so
> we'd have to total these deltas across all files touched by the
> commit.

I'm not completely familiar with CVS log output, but if you're looking  
for "number of lines added, number of lines removed" type of output,  
I'd think 'svn diff' piped to 'diffstat' would work.  Something like:

$ svn diff -c12345 | diffstat

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2080510

Re: Re: [Patch]: [Issue 2367] get rid of "... | N lines" slot in log message header

Posted by Greg Stein <gs...@gmail.com>.
On Wed, May 6, 2009 at 11:16,  <we...@tigris.org> wrote:
> Hi,
>
> Karl:
>> Thanks for the patch -- but you may have missed the big thing about
>> this issue: that the change can't be made before 2.0, because of
>> interface promises.  (Anyway, we'd have to discuss it a lot to change
>> it before then.)  That's why the issue is set so far in the future.
>
> Is there an estimated date for 2.0? Even if the "line" string is bearable noise for the user, "svn log" still lacks a short summary of the size of a commit in the style of cvs log "line" field.

We have no thoughts on 2.0 at all. That would break compatibility with
a huge ecosystem of tools built upon Subversion. Nobody wants to rock
the boat that hard, and I don't think it would really be all that
great for end-users losing much of their toolset that way.

> Couldn't we provide this kind of information by just an extra option to svn log so that compatibility is preserved?

We could, yes. The problem is that we store changes differently from
CVS. There is no simple "it changed N lines and added N lines" for a
given change (because we do binary deltas -- character by character;
we'd have to reconstruct files to detect line-based changes). CVS does
this file by file, but we'd want to summarize the whole revision, so
we'd have to total these deltas across all files touched by the
commit.

Doable, yes. But some non-trivial work to reproduce.

Cheers,
-g

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2079029