|
|
@@ -47,7 +47,8 @@ conf = {
|
|
47
|
47
|
'linear_linestats': 1,
|
|
48
|
48
|
'project_name': '',
|
|
49
|
49
|
'processes': 8,
|
|
50
|
|
- 'start_date': ''
|
|
|
50
|
+ 'start_date': '',
|
|
|
51
|
+ 'end_date': ''
|
|
51
|
52
|
}
|
|
52
|
53
|
|
|
53
|
54
|
def getpipeoutput(cmds, quiet = False):
|
|
|
@@ -74,8 +75,13 @@ def getpipeoutput(cmds, quiet = False):
|
|
74
|
75
|
|
|
75
|
76
|
def getlogrange(defaultrange = 'HEAD', end_only = True):
|
|
76
|
77
|
commit_range = getcommitrange(defaultrange, end_only)
|
|
77
|
|
- if len(conf['start_date']) > 0:
|
|
|
78
|
+ if len(conf['start_date']) > 0 and len(conf['end_date']) > 0:
|
|
|
79
|
+ return '--after="%s" --before="%s" "%s"' % (conf['start_date'],
|
|
|
80
|
+ conf['end_date'],
|
|
|
81
|
+ commit_range)
|
|
|
82
|
+ elif len(conf['start_date']) > 0:
|
|
78
|
83
|
return '--since="%s" "%s"' % (conf['start_date'], commit_range)
|
|
|
84
|
+
|
|
79
|
85
|
return commit_range
|
|
80
|
86
|
|
|
81
|
87
|
def getcommitrange(defaultrange = 'HEAD', end_only = False):
|