Bugzilla – Bug 538
the lines of code over time graph can't be generated automatically
Last modified: 2009-05-28 08:57:16 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 ""
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.
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