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
: ns-3
general
: pre-release
: All All
: P5 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-04-02 03:23 EDT by
Modified: 2009-05-28 08:57 EDT (History)


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


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-04-02 03:23:37 EDT
Created an attachment (id=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 From 2009-04-03 10:53:27 EDT -------
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 From 2009-05-28 08:57:16 EDT -------
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