Ver código fonte

Don't fail if DST exists.

Heikki Hokkanen 18 anos atrás
pai
commit
7122c9cc13
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5
    4
      statgit

+ 5
- 4
statgit Ver arquivo

@@ -359,7 +359,6 @@ class HTMLReportCreator(ReportCreator):
359 359
 		fg.close()
360 360
 
361 361
 		# Day of Week
362
-		# TODO show also by hour of weekday?
363 362
 		f.write('\n<h2>Day of Week</h2>\n\n')
364 363
 		day_of_week = data.getActivityByDayOfWeek()
365 364
 		f.write('<div class="vtable"><table>')
@@ -615,14 +614,13 @@ plot 'month_of_year.dat' using 1:2:(0.5) w boxes fs solid
615 614
 		f = open(path + '/commits_by_year_month.plot', 'w')
616 615
 		f.write(GNUPLOT_COMMON)
617 616
 		f.write(
618
-		# TODO rotate xtic labels by 90 degrees
619 617
 """
620 618
 set output 'commits_by_year_month.png'
621 619
 unset key
622 620
 set xdata time
623 621
 set timefmt "%Y-%m"
624 622
 set format x "%Y-%m"
625
-set xtics 15768000
623
+set xtics rotate by 90 15768000
626 624
 set ylabel "Commits"
627 625
 plot 'commits_by_year_month.dat' using 1:2:(0.5) w boxes fs solid
628 626
 """)
@@ -704,7 +702,10 @@ if len(sys.argv) <  3:
704 702
 gitpath = sys.argv[1]
705 703
 outputpath = os.path.abspath(sys.argv[2])
706 704
 
707
-os.makedirs(outputpath)
705
+try:
706
+	os.makedirs(outputpath)
707
+except OSError:
708
+	pass
708 709
 if not os.path.isdir(outputpath):
709 710
 	print 'FATAL: Output path is not a directory or does not exist'
710 711
 	sys.exit(1)