Forums : Technical Issue Help

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

line count negative

hello,

in the project https://www.ohloh.net/p/ask-bob the mine count is negative ! All the commit are here but it seems that the analysis doesnot take them into account at all.

Maybe the counter only uses the default branch (for mercurial repositery), but it seems very weird to me.

Any idea ?

--
kamaradclimber

kamaradclimber about 14 years ago
 

Hi kamaradclimber,

I think this can be attributed to a bug in Ohloh.

If a code change is repeated on many branches, and then those branches are merged together, Ohloh does not properly compute the total lines of code. For instance, if you delete the same 100 lines of code on two branches and then merge those two branches, the net result is -100 lines, but Ohloh will count it twice for a net result of -200 lines.

It looks like the early history of this repository has some branching in the first few revisions, and then those branches are merged back together in at revision 13. It's possible that duplicate changes on these early branches have caused Ohloh to miscount the total.

This is a bug in Ohloh which needs fixing, and I don't think there's a workaround.

Robin

Robin Luckey about 14 years ago
 

ok thank you

kamaradclimber about 14 years ago
 

@Robin: You probably want to do something similar to what
git log --first-parent -m --oneline --shortstat
does.

rgrig over 13 years ago
 

rgrig:

Thanks for the info. I've added it to our bug on this issue so when we go to fix it we'll see the info :)

RobertSchultz over 13 years ago
 

Hi,

We fixed the underlying issue and pushed out a set of fixes this weekend. https://www.ohloh.net/p/ask-bob/analyses/latest looks good now.

Thanks

Abhay Mujumdar about 13 years ago