Bug 211343 - Checking in a new file to CVS results in a CHANGE_SIZE == 0
Summary: Checking in a new file to CVS results in a CHANGE_SIZE == 0
Status: CLOSED WONTFIX
Alias: None
Product: Dash
Classification: Technology
Component: Commits Explorer (Retired) (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Dash Incoming bugs CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-11-28 17:36 EST by Nick Boldt CLA
Modified: 2018-06-07 17:02 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2007-11-28 17:36:35 EST
Instead of returning the size of the new file, the CHANGE_SIZE is recorded as 0, which means that, for example, the 366 new files that user thabeck [1],[2],[3] created in July 2007 do NOT contribute to his LOC stats [4].

[1]http://dash.eclipse.org/dash/commits/web-app/summary.cgi?project=x&type=y&year=2007&login=thabeck [2]http://dash.eclipse.org/dash/commits/web-app/summary.cgi?company=x&type=y&login=thabeck&project=eclipse.equinox
[3]http://dash.eclipse.org/dash/commits/web-api/commit-zero-length-changes.php?month=200707&login=thabeck&project=eclipse.equinox&queries=count,detail

[4]http://dash.eclipse.org/dash/commits/web-api/commit-count-loc.php?login=thabeck 

How does this data get from CVS into the database, and where/how can I change this?
Comment 1 Nick Boldt CLA 2007-11-28 17:39:43 EST
Note also that I think deletes/recovers [5] and tag/branch operations may also return a CHANGE_SIZE of 0, which is probably acceptable here. It's just the initial commits that need to be calculated larger, IMHO.

[5]http://dash.eclipse.org/dash/commits/web-api/commit-zero-length-changes.php?month=200707&login=nickb
Comment 2 Karl Matthias CLA 2008-04-17 13:39:30 EDT
We've a related issue in that SVN does not report lines of code at all.  That number is largely invalid at this point.  How should we handle this whole issue?
Comment 3 Nick Boldt CLA 2008-04-17 14:20:14 EDT
Well, when a new file is created, enter the # of LOC as the LOC of the initial commit -- `wc -l $thefile`.

For svn... no clue, I'm still living in Prehistoria with my bronze-age implements and CVS. :)
Comment 4 Bjorn Freeman-Benson CLA 2008-06-11 10:11:54 EDT
We don't have plans to work on this bug (i.e., we're ok with how it works) but are happy to accept a patch from the community to add this feature.
If you add a patch, please change the priority from P5 back to P3 so it will appear on our queries.
Comment 5 Nick Boldt CLA 2018-06-07 17:02:59 EDT
Closing out of date