Show More
@@ -70,6 +70,9 b" configitem('blackbox', 'maxsize'," | |||||
70 | configitem('blackbox', 'logsource', |
|
70 | configitem('blackbox', 'logsource', | |
71 | default=False, |
|
71 | default=False, | |
72 | ) |
|
72 | ) | |
|
73 | configitem('blackbox', 'maxfiles', | |||
|
74 | default=7, | |||
|
75 | ) | |||
73 | configitem('blackbox', 'track', |
|
76 | configitem('blackbox', 'track', | |
74 | default=lambda: ['*'], |
|
77 | default=lambda: ['*'], | |
75 | ) |
|
78 | ) | |
@@ -102,7 +105,7 b' def _openlogfile(ui, vfs):' | |||||
102 | else: |
|
105 | else: | |
103 | if st.st_size >= maxsize: |
|
106 | if st.st_size >= maxsize: | |
104 | path = vfs.join(name) |
|
107 | path = vfs.join(name) | |
105 |
maxfiles = ui.configint('blackbox', 'maxfiles' |
|
108 | maxfiles = ui.configint('blackbox', 'maxfiles') | |
106 | for i in xrange(maxfiles - 1, 1, -1): |
|
109 | for i in xrange(maxfiles - 1, 1, -1): | |
107 | rotate(oldpath='%s.%d' % (path, i - 1), |
|
110 | rotate(oldpath='%s.%d' % (path, i - 1), | |
108 | newpath='%s.%d' % (path, i)) |
|
111 | newpath='%s.%d' % (path, i)) |
General Comments 0
You need to be logged in to leave comments.
Login now