Bug 538 - the lines of code over time graph can't be generated automatically
the lines of code over time graph can't be generated automatically
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: general
pre-release
All All
: P5 normal
Assigned To: Faker Moatamri
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-02 03:23 UTC by Mathieu Lacage
Modified: 2009-05-28 08:57 UTC (History)
1 user (show)

See Also:


Attachments
locinfo file (2.30 KB, application/octet-stream)
2009-04-02 03:23 UTC, Mathieu Lacage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lacage 2009-04-02 03:23:37 UTC
Created attachment 412 [details]
locinfo file

the graphic we display on our webpage is not generated automatically: http://www.nsnam.org/images/locinfo.png

Here is what we use to generate it. We need to automate this task.

gnuplot> set xdata time
gnuplot> set timefmt "%s"
gnuplot> set format x "%m/%y" 
gnuplot> set title "Cumulative number of lines changed over time"
gnuplot> set terminal postscript
gnuplot> set output tom.ps
gnuplot> plot 'b' using 1:2 title ""
Comment 1 Tom Henderson 2009-04-03 10:53:27 UTC
There are several cron jobs that run on the server as user nsnam (see ~nsnam/bin).  Another script like locinfo could be added there.  I could never run the old locinfo.py successfully as an hg extension, but I suppose it could be run outside of mercurial, in combination with the gnuplot instructions you show above.
Comment 2 Faker Moatamri 2009-05-28 08:57:16 UTC
The python code is available in locinfo/locinfo.py in the repository:
http://code.nsnam.org/scripts
It generates a png file, the usage syntax is:
./locinfo.py -o outputfile -r /path/to/repository
It needs a local repository to compute and generate the graph.
Regards
Faker