Bug 538

Summary: the lines of code over time graph can't be generated automatically
Product: ns-3 Reporter: Mathieu Lacage <mathieu.lacage>
Component: generalAssignee: Faker Moatamri <faker.moatamri>
Status: RESOLVED FIXED    
Severity: normal CC: tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: locinfo file

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