Show More
@@ -40,6 +40,9 b' def age(date):' | |||||
40 | return 'in the future' |
|
40 | return 'in the future' | |
41 |
|
41 | |||
42 | delta = max(1, int(now - then)) |
|
42 | delta = max(1, int(now - then)) | |
|
43 | if delta > agescales[0][1] * 2: | |||
|
44 | return util.shortdate(date) | |||
|
45 | ||||
43 | for t, s in agescales: |
|
46 | for t, s in agescales: | |
44 | n = delta // s |
|
47 | n = delta // s | |
45 | if n >= 2 or s == 1: |
|
48 | if n >= 2 or s == 1: |
@@ -22,7 +22,6 b' for h in headers:' | |||||
22 | print "%s: %s" % (h, response.getheader(h)) |
|
22 | print "%s: %s" % (h, response.getheader(h)) | |
23 |
|
23 | |||
24 | data = response.read() |
|
24 | data = response.read() | |
25 | data = re.sub('\d+ years', 'many years', data) |
|
|||
26 | sys.stdout.write(data) |
|
25 | sys.stdout.write(data) | |
27 |
|
26 | |||
28 | if 200 <= response.status <= 299: |
|
27 | if 200 <= response.status <= 299: |
@@ -210,17 +210,17 b' files, or words in the commit message</d' | |||||
210 | <th class="description">description</th> |
|
210 | <th class="description">description</th> | |
211 | </tr> |
|
211 | </tr> | |
212 | <tr class="parity0"> |
|
212 | <tr class="parity0"> | |
213 |
<td class="age"> |
|
213 | <td class="age">1970-01-01</td> | |
214 | <td class="author">test</td> |
|
214 | <td class="author">test</td> | |
215 | <td class="description"><a href="/rev/1d22e65f027e">branch</a><span class="branchhead">stable</span> <span class="tag">tip</span> </td> |
|
215 | <td class="description"><a href="/rev/1d22e65f027e">branch</a><span class="branchhead">stable</span> <span class="tag">tip</span> </td> | |
216 | </tr> |
|
216 | </tr> | |
217 | <tr class="parity1"> |
|
217 | <tr class="parity1"> | |
218 |
<td class="age"> |
|
218 | <td class="age">1970-01-01</td> | |
219 | <td class="author">test</td> |
|
219 | <td class="author">test</td> | |
220 | <td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </td> |
|
220 | <td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </td> | |
221 | </tr> |
|
221 | </tr> | |
222 | <tr class="parity0"> |
|
222 | <tr class="parity0"> | |
223 |
<td class="age"> |
|
223 | <td class="age">1970-01-01</td> | |
224 | <td class="author">test</td> |
|
224 | <td class="author">test</td> | |
225 | <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> </td> |
|
225 | <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> </td> | |
226 | </tr> |
|
226 | </tr> | |
@@ -291,7 +291,7 b' files, or words in the commit message</d' | |||||
291 | </tr> |
|
291 | </tr> | |
292 | <tr> |
|
292 | <tr> | |
293 | <th class="date">date</th> |
|
293 | <th class="date">date</th> | |
294 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
294 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td></tr> | |
295 | <tr> |
|
295 | <tr> | |
296 | <th class="author">parents</th> |
|
296 | <th class="author">parents</th> | |
297 | <td class="author"></td> |
|
297 | <td class="author"></td> | |
@@ -422,7 +422,7 b' files, or words in the commit message</d' | |||||
422 | </tr> |
|
422 | </tr> | |
423 | <tr> |
|
423 | <tr> | |
424 | <th class="date">date</th> |
|
424 | <th class="date">date</th> | |
425 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
425 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td> | |
426 | </tr> |
|
426 | </tr> | |
427 | <tr> |
|
427 | <tr> | |
428 | <th class="author">parents</th> |
|
428 | <th class="author">parents</th> | |
@@ -523,7 +523,7 b' branches |' | |||||
523 | <table cellspacing="0"> |
|
523 | <table cellspacing="0"> | |
524 |
|
524 | |||
525 | <tr class="parity0"> |
|
525 | <tr class="parity0"> | |
526 |
<td class="age"><i> |
|
526 | <td class="age"><i>1970-01-01</i></td> | |
527 | <td><a class="list" href="/shortlog/1d22e65f027e?style=gitweb"><b>1d22e65f027e</b></a></td> |
|
527 | <td><a class="list" href="/shortlog/1d22e65f027e?style=gitweb"><b>1d22e65f027e</b></a></td> | |
528 | <td class="open">stable</td> |
|
528 | <td class="open">stable</td> | |
529 | <td class="link"> |
|
529 | <td class="link"> | |
@@ -533,7 +533,7 b' branches |' | |||||
533 | </td> |
|
533 | </td> | |
534 | </tr> |
|
534 | </tr> | |
535 | <tr class="parity1"> |
|
535 | <tr class="parity1"> | |
536 |
<td class="age"><i> |
|
536 | <td class="age"><i>1970-01-01</i></td> | |
537 | <td><a class="list" href="/shortlog/a4f92ed23982?style=gitweb"><b>a4f92ed23982</b></a></td> |
|
537 | <td><a class="list" href="/shortlog/a4f92ed23982?style=gitweb"><b>a4f92ed23982</b></a></td> | |
538 | <td class="inactive">default</td> |
|
538 | <td class="inactive">default</td> | |
539 | <td class="link"> |
|
539 | <td class="link"> | |
@@ -608,7 +608,7 b' summary |' | |||||
608 | <table cellspacing="0"> |
|
608 | <table cellspacing="0"> | |
609 |
|
609 | |||
610 | <tr class="parity0"> |
|
610 | <tr class="parity0"> | |
611 |
<td class="age"><i> |
|
611 | <td class="age"><i>1970-01-01</i></td> | |
612 | <td><i>test</i></td> |
|
612 | <td><i>test</i></td> | |
613 | <td> |
|
613 | <td> | |
614 | <a class="list" href="/rev/1d22e65f027e?style=gitweb"> |
|
614 | <a class="list" href="/rev/1d22e65f027e?style=gitweb"> | |
@@ -622,7 +622,7 b' summary |' | |||||
622 | </td> |
|
622 | </td> | |
623 | </tr> |
|
623 | </tr> | |
624 | <tr class="parity1"> |
|
624 | <tr class="parity1"> | |
625 |
<td class="age"><i> |
|
625 | <td class="age"><i>1970-01-01</i></td> | |
626 | <td><i>test</i></td> |
|
626 | <td><i>test</i></td> | |
627 | <td> |
|
627 | <td> | |
628 | <a class="list" href="/rev/a4f92ed23982?style=gitweb"> |
|
628 | <a class="list" href="/rev/a4f92ed23982?style=gitweb"> | |
@@ -636,7 +636,7 b' summary |' | |||||
636 | </td> |
|
636 | </td> | |
637 | </tr> |
|
637 | </tr> | |
638 | <tr class="parity0"> |
|
638 | <tr class="parity0"> | |
639 |
<td class="age"><i> |
|
639 | <td class="age"><i>1970-01-01</i></td> | |
640 | <td><i>test</i></td> |
|
640 | <td><i>test</i></td> | |
641 | <td> |
|
641 | <td> | |
642 | <a class="list" href="/rev/2ef0ac749a14?style=gitweb"> |
|
642 | <a class="list" href="/rev/2ef0ac749a14?style=gitweb"> | |
@@ -656,7 +656,7 b' summary |' | |||||
656 | <table cellspacing="0"> |
|
656 | <table cellspacing="0"> | |
657 |
|
657 | |||
658 | <tr class="parity0"> |
|
658 | <tr class="parity0"> | |
659 |
<td class="age"><i> |
|
659 | <td class="age"><i>1970-01-01</i></td> | |
660 | <td><a class="list" href="/rev/2ef0ac749a14?style=gitweb"><b>1.0</b></a></td> |
|
660 | <td><a class="list" href="/rev/2ef0ac749a14?style=gitweb"><b>1.0</b></a></td> | |
661 | <td class="link"> |
|
661 | <td class="link"> | |
662 | <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> | |
|
662 | <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> | | |
@@ -671,7 +671,7 b' summary |' | |||||
671 | <table cellspacing="0"> |
|
671 | <table cellspacing="0"> | |
672 |
|
672 | |||
673 | <tr class="parity0"> |
|
673 | <tr class="parity0"> | |
674 |
<td class="age"><i> |
|
674 | <td class="age"><i>1970-01-01</i></td> | |
675 | <td><a class="list" href="/shortlog/1d22e65f027e?style=gitweb"><b>1d22e65f027e</b></a></td> |
|
675 | <td><a class="list" href="/shortlog/1d22e65f027e?style=gitweb"><b>1d22e65f027e</b></a></td> | |
676 | <td class="">stable</td> |
|
676 | <td class="">stable</td> | |
677 | <td class="link"> |
|
677 | <td class="link"> | |
@@ -681,7 +681,7 b' summary |' | |||||
681 | </td> |
|
681 | </td> | |
682 | </tr> |
|
682 | </tr> | |
683 | <tr class="parity1"> |
|
683 | <tr class="parity1"> | |
684 |
<td class="age"><i> |
|
684 | <td class="age"><i>1970-01-01</i></td> | |
685 | <td><a class="list" href="/shortlog/a4f92ed23982?style=gitweb"><b>a4f92ed23982</b></a></td> |
|
685 | <td><a class="list" href="/shortlog/a4f92ed23982?style=gitweb"><b>a4f92ed23982</b></a></td> | |
686 | <td class="">default</td> |
|
686 | <td class="">default</td> | |
687 | <td class="link"> |
|
687 | <td class="link"> | |
@@ -764,7 +764,7 b' graph |' | |||||
764 | <script> |
|
764 | <script> | |
765 | <!-- hide script content |
|
765 | <!-- hide script content | |
766 |
|
766 | |||
767 |
var data = [["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", " |
|
767 | var data = [["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", true], ["tip"]], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"]]]; | |
768 | var graph = new Graph(); |
|
768 | var graph = new Graph(); | |
769 | graph.scale(39); |
|
769 | graph.scale(39); | |
770 |
|
770 |
@@ -59,7 +59,7 b' files, or words in the commit message</d' | |||||
59 | </tr> |
|
59 | </tr> | |
60 | <tr> |
|
60 | <tr> | |
61 | <th class="date">date</th> |
|
61 | <th class="date">date</th> | |
62 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
62 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td></tr> | |
63 | <tr> |
|
63 | <tr> | |
64 | <th class="author">parents</th> |
|
64 | <th class="author">parents</th> | |
65 | <td class="author"></td> |
|
65 | <td class="author"></td> | |
@@ -177,7 +177,7 b' files, or words in the commit message</d' | |||||
177 | </tr> |
|
177 | </tr> | |
178 | <tr> |
|
178 | <tr> | |
179 | <th>date</th> |
|
179 | <th>date</th> | |
180 |
<td>Thu Jan 01 00:00:00 1970 +0000 ( |
|
180 | <td>Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td> | |
181 | </tr> |
|
181 | </tr> | |
182 | <tr> |
|
182 | <tr> | |
183 | <th>parents</th> |
|
183 | <th>parents</th> | |
@@ -264,7 +264,7 b' files, or words in the commit message</d' | |||||
264 | </tr> |
|
264 | </tr> | |
265 | <tr> |
|
265 | <tr> | |
266 | <th class="date">date</th> |
|
266 | <th class="date">date</th> | |
267 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
267 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td></tr> | |
268 | <tr> |
|
268 | <tr> | |
269 | <th class="author">parents</th> |
|
269 | <th class="author">parents</th> | |
270 | <td class="author"></td> |
|
270 | <td class="author"></td> | |
@@ -386,7 +386,7 b' files, or words in the commit message</d' | |||||
386 | </tr> |
|
386 | </tr> | |
387 | <tr> |
|
387 | <tr> | |
388 | <th>date</th> |
|
388 | <th>date</th> | |
389 |
<td>Thu Jan 01 00:00:00 1970 +0000 ( |
|
389 | <td>Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td> | |
390 | </tr> |
|
390 | </tr> | |
391 | <tr> |
|
391 | <tr> | |
392 | <th>parents</th> |
|
392 | <th>parents</th> |
@@ -148,12 +148,12 b' files, or words in the commit message</d' | |||||
148 | <th class="description">description</th> |
|
148 | <th class="description">description</th> | |
149 | </tr> |
|
149 | </tr> | |
150 | <tr class="parity0"> |
|
150 | <tr class="parity0"> | |
151 |
<td class="age"> |
|
151 | <td class="age">1970-01-01</td> | |
152 | <td class="author">test</td> |
|
152 | <td class="author">test</td> | |
153 | <td class="description"><a href="/rev/01de2d66a28d">second a</a></td> |
|
153 | <td class="description"><a href="/rev/01de2d66a28d">second a</a></td> | |
154 | </tr> |
|
154 | </tr> | |
155 | <tr class="parity1"> |
|
155 | <tr class="parity1"> | |
156 |
<td class="age"> |
|
156 | <td class="age">1970-01-01</td> | |
157 | <td class="author">test</td> |
|
157 | <td class="author">test</td> | |
158 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> |
|
158 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> | |
159 | </tr> |
|
159 | </tr> | |
@@ -231,12 +231,12 b' files, or words in the commit message</d' | |||||
231 | <th class="description">description</th> |
|
231 | <th class="description">description</th> | |
232 | </tr> |
|
232 | </tr> | |
233 | <tr class="parity0"> |
|
233 | <tr class="parity0"> | |
234 |
<td class="age"> |
|
234 | <td class="age">1970-01-01</td> | |
235 | <td class="author">test</td> |
|
235 | <td class="author">test</td> | |
236 | <td class="description"><a href="/rev/01de2d66a28d">second a</a></td> |
|
236 | <td class="description"><a href="/rev/01de2d66a28d">second a</a></td> | |
237 | </tr> |
|
237 | </tr> | |
238 | <tr class="parity1"> |
|
238 | <tr class="parity1"> | |
239 |
<td class="age"> |
|
239 | <td class="age">1970-01-01</td> | |
240 | <td class="author">test</td> |
|
240 | <td class="author">test</td> | |
241 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> |
|
241 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> | |
242 | </tr> |
|
242 | </tr> | |
@@ -314,7 +314,7 b' files, or words in the commit message</d' | |||||
314 | <th class="description">description</th> |
|
314 | <th class="description">description</th> | |
315 | </tr> |
|
315 | </tr> | |
316 | <tr class="parity0"> |
|
316 | <tr class="parity0"> | |
317 |
<td class="age"> |
|
317 | <td class="age">1970-01-01</td> | |
318 | <td class="author">test</td> |
|
318 | <td class="author">test</td> | |
319 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> |
|
319 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> | |
320 | </tr> |
|
320 | </tr> | |
@@ -392,7 +392,7 b' files, or words in the commit message</d' | |||||
392 | <th class="description">description</th> |
|
392 | <th class="description">description</th> | |
393 | </tr> |
|
393 | </tr> | |
394 | <tr class="parity0"> |
|
394 | <tr class="parity0"> | |
395 |
<td class="age"> |
|
395 | <td class="age">1970-01-01</td> | |
396 | <td class="author">test</td> |
|
396 | <td class="author">test</td> | |
397 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> |
|
397 | <td class="description"><a href="/rev/5ed941583260">first a</a></td> | |
398 | </tr> |
|
398 | </tr> | |
@@ -499,7 +499,7 b' 200 Script output follows' | |||||
499 |
|
499 | |||
500 | <table class="logEntry parity0"> |
|
500 | <table class="logEntry parity0"> | |
501 | <tr> |
|
501 | <tr> | |
502 |
<th class="age"> |
|
502 | <th class="age">1970-01-01:</th> | |
503 | <th class="firstline"><a href="/rev/38d962e6234d?style=spartan">change c</a></th> |
|
503 | <th class="firstline"><a href="/rev/38d962e6234d?style=spartan">change c</a></th> | |
504 | </tr> |
|
504 | </tr> | |
505 | <tr> |
|
505 | <tr> | |
@@ -524,7 +524,7 b' 200 Script output follows' | |||||
524 |
|
524 | |||
525 | <table class="logEntry parity1"> |
|
525 | <table class="logEntry parity1"> | |
526 | <tr> |
|
526 | <tr> | |
527 |
<th class="age"> |
|
527 | <th class="age">1970-01-01:</th> | |
528 | <th class="firstline"><a href="/rev/a3b6a9e4507e?style=spartan">mv b</a></th> |
|
528 | <th class="firstline"><a href="/rev/a3b6a9e4507e?style=spartan">mv b</a></th> | |
529 | </tr> |
|
529 | </tr> | |
530 | <tr> |
|
530 | <tr> |
@@ -57,7 +57,7 b' files, or words in the commit message</d' | |||||
57 | </tr> |
|
57 | </tr> | |
58 | <tr> |
|
58 | <tr> | |
59 | <th class="date">date</th> |
|
59 | <th class="date">date</th> | |
60 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
60 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td></tr> | |
61 | <tr> |
|
61 | <tr> | |
62 | <th class="author">parents</th> |
|
62 | <th class="author">parents</th> | |
63 | <td class="author"><a href="/rev/cb9a9f314b8b">cb9a9f314b8b</a> </td> |
|
63 | <td class="author"><a href="/rev/cb9a9f314b8b">cb9a9f314b8b</a> </td> | |
@@ -149,7 +149,7 b' files, or words in the commit message</d' | |||||
149 | </tr> |
|
149 | </tr> | |
150 | <tr> |
|
150 | <tr> | |
151 | <th>date</th> |
|
151 | <th>date</th> | |
152 |
<td>Thu Jan 01 00:00:00 1970 +0000 ( |
|
152 | <td>Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td> | |
153 | </tr> |
|
153 | </tr> | |
154 | <tr> |
|
154 | <tr> | |
155 | <th>parents</th> |
|
155 | <th>parents</th> |
@@ -61,7 +61,7 b' files, or words in the commit message</d' | |||||
61 | </tr> |
|
61 | </tr> | |
62 | <tr> |
|
62 | <tr> | |
63 | <th class="date">date</th> |
|
63 | <th class="date">date</th> | |
64 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
64 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td> | |
65 | </tr> |
|
65 | </tr> | |
66 | <tr> |
|
66 | <tr> | |
67 | <th class="author">parents</th> |
|
67 | <th class="author">parents</th> | |
@@ -181,7 +181,7 b' files, or words in the commit message</d' | |||||
181 | </tr> |
|
181 | </tr> | |
182 | <tr> |
|
182 | <tr> | |
183 | <th class="date">date</th> |
|
183 | <th class="date">date</th> | |
184 |
<td class="date">Thu Jan 01 00:00:00 1970 +0000 ( |
|
184 | <td class="date">Thu Jan 01 00:00:00 1970 +0000 (1970-01-01)</td> | |
185 | </tr> |
|
185 | </tr> | |
186 | <tr> |
|
186 | <tr> | |
187 | <th class="author">parents</th> |
|
187 | <th class="author">parents</th> |
General Comments 0
You need to be logged in to leave comments.
Login now