Show More
@@ -89,7 +89,6 b' class hgwebdir(object):' | |||||
89 | name = name[len(prefix):] |
|
89 | name = name[len(prefix):] | |
90 | self.repos.append((name.lstrip('/'), repo)) |
|
90 | self.repos.append((name.lstrip('/'), repo)) | |
91 |
|
91 | |||
92 | self.repos.sort() |
|
|||
93 | self.lastrefresh = time.time() |
|
92 | self.lastrefresh = time.time() | |
94 |
|
93 | |||
95 | def run(self): |
|
94 | def run(self): | |
@@ -196,7 +195,7 b' class hgwebdir(object):' | |||||
196 | yield {"type" : i[0], "extension": i[1], |
|
195 | yield {"type" : i[0], "extension": i[1], | |
197 | "node": nodeid, "url": url} |
|
196 | "node": nodeid, "url": url} | |
198 |
|
197 | |||
199 |
sortdefault = |
|
198 | sortdefault = None, False | |
200 | def entries(sortcolumn="", descending=False, subdir="", **map): |
|
199 | def entries(sortcolumn="", descending=False, subdir="", **map): | |
201 |
|
200 | |||
202 | rows = [] |
|
201 | rows = [] |
@@ -29,6 +29,7 b' error: repository c not found' | |||||
29 | 200 Script output follows |
|
29 | 200 Script output follows | |
30 |
|
30 | |||
31 |
|
31 | |||
|
32 | /t/a/ | |||
32 | /b/ |
|
33 | /b/ | |
33 | /coll/a/ |
|
34 | /coll/a/ | |
34 | /coll/a/.hg/patches/ |
|
35 | /coll/a/.hg/patches/ | |
@@ -39,7 +40,6 b' 200 Script output follows' | |||||
39 | /rcoll/b/ |
|
40 | /rcoll/b/ | |
40 | /rcoll/b/d/ |
|
41 | /rcoll/b/d/ | |
41 | /rcoll/c/ |
|
42 | /rcoll/c/ | |
42 | /t/a/ |
|
|||
43 |
|
43 | |||
44 | 200 Script output follows |
|
44 | 200 Script output follows | |
45 |
|
45 | |||
@@ -64,7 +64,7 b' 200 Script output follows' | |||||
64 |
|
64 | |||
65 | <table class="bigtable"> |
|
65 | <table class="bigtable"> | |
66 | <tr> |
|
66 | <tr> | |
67 |
<th><a href="?sort= |
|
67 | <th><a href="?sort=name">Name</a></th> | |
68 | <th><a href="?sort=description">Description</a></th> |
|
68 | <th><a href="?sort=description">Description</a></th> | |
69 | <th><a href="?sort=contact">Contact</a></th> |
|
69 | <th><a href="?sort=contact">Contact</a></th> | |
70 | <th><a href="?sort=lastchange">Last change</a></th> |
|
70 | <th><a href="?sort=lastchange">Last change</a></th> | |
@@ -72,7 +72,7 b' 200 Script output follows' | |||||
72 | </tr> |
|
72 | </tr> | |
73 |
|
73 | |||
74 | <tr class="parity0"> |
|
74 | <tr class="parity0"> | |
75 |
<td><a href="/ |
|
75 | <td><a href="/t/a/?style=paper">t/a</a></td> | |
76 | <td>unknown</td> |
|
76 | <td>unknown</td> | |
77 | <td>Foo Bar <foo.bar@example.com></td> |
|
77 | <td>Foo Bar <foo.bar@example.com></td> | |
78 | <td class="age">seconds ago</td> |
|
78 | <td class="age">seconds ago</td> | |
@@ -80,7 +80,7 b' 200 Script output follows' | |||||
80 | </tr> |
|
80 | </tr> | |
81 |
|
81 | |||
82 | <tr class="parity1"> |
|
82 | <tr class="parity1"> | |
83 |
<td><a href="/ |
|
83 | <td><a href="/b/?style=paper">b</a></td> | |
84 | <td>unknown</td> |
|
84 | <td>unknown</td> | |
85 | <td>Foo Bar <foo.bar@example.com></td> |
|
85 | <td>Foo Bar <foo.bar@example.com></td> | |
86 | <td class="age">seconds ago</td> |
|
86 | <td class="age">seconds ago</td> | |
@@ -88,7 +88,7 b' 200 Script output follows' | |||||
88 | </tr> |
|
88 | </tr> | |
89 |
|
89 | |||
90 | <tr class="parity0"> |
|
90 | <tr class="parity0"> | |
91 |
<td><a href="/coll/a/ |
|
91 | <td><a href="/coll/a/?style=paper">coll/a</a></td> | |
92 | <td>unknown</td> |
|
92 | <td>unknown</td> | |
93 | <td>Foo Bar <foo.bar@example.com></td> |
|
93 | <td>Foo Bar <foo.bar@example.com></td> | |
94 | <td class="age">seconds ago</td> |
|
94 | <td class="age">seconds ago</td> | |
@@ -96,7 +96,7 b' 200 Script output follows' | |||||
96 | </tr> |
|
96 | </tr> | |
97 |
|
97 | |||
98 | <tr class="parity1"> |
|
98 | <tr class="parity1"> | |
99 |
<td><a href="/coll/ |
|
99 | <td><a href="/coll/a/.hg/patches/?style=paper">coll/a/.hg/patches</a></td> | |
100 | <td>unknown</td> |
|
100 | <td>unknown</td> | |
101 | <td>Foo Bar <foo.bar@example.com></td> |
|
101 | <td>Foo Bar <foo.bar@example.com></td> | |
102 | <td class="age">seconds ago</td> |
|
102 | <td class="age">seconds ago</td> | |
@@ -104,7 +104,7 b' 200 Script output follows' | |||||
104 | </tr> |
|
104 | </tr> | |
105 |
|
105 | |||
106 | <tr class="parity0"> |
|
106 | <tr class="parity0"> | |
107 |
<td><a href="/coll/ |
|
107 | <td><a href="/coll/b/?style=paper">coll/b</a></td> | |
108 | <td>unknown</td> |
|
108 | <td>unknown</td> | |
109 | <td>Foo Bar <foo.bar@example.com></td> |
|
109 | <td>Foo Bar <foo.bar@example.com></td> | |
110 | <td class="age">seconds ago</td> |
|
110 | <td class="age">seconds ago</td> | |
@@ -112,7 +112,7 b' 200 Script output follows' | |||||
112 | </tr> |
|
112 | </tr> | |
113 |
|
113 | |||
114 | <tr class="parity1"> |
|
114 | <tr class="parity1"> | |
115 |
<td><a href="/ |
|
115 | <td><a href="/coll/c/?style=paper">coll/c</a></td> | |
116 | <td>unknown</td> |
|
116 | <td>unknown</td> | |
117 | <td>Foo Bar <foo.bar@example.com></td> |
|
117 | <td>Foo Bar <foo.bar@example.com></td> | |
118 | <td class="age">seconds ago</td> |
|
118 | <td class="age">seconds ago</td> | |
@@ -120,7 +120,7 b' 200 Script output follows' | |||||
120 | </tr> |
|
120 | </tr> | |
121 |
|
121 | |||
122 | <tr class="parity0"> |
|
122 | <tr class="parity0"> | |
123 |
<td><a href="/rcoll/a/ |
|
123 | <td><a href="/rcoll/a/?style=paper">rcoll/a</a></td> | |
124 | <td>unknown</td> |
|
124 | <td>unknown</td> | |
125 | <td>Foo Bar <foo.bar@example.com></td> |
|
125 | <td>Foo Bar <foo.bar@example.com></td> | |
126 | <td class="age">seconds ago</td> |
|
126 | <td class="age">seconds ago</td> | |
@@ -128,7 +128,7 b' 200 Script output follows' | |||||
128 | </tr> |
|
128 | </tr> | |
129 |
|
129 | |||
130 | <tr class="parity1"> |
|
130 | <tr class="parity1"> | |
131 |
<td><a href="/rcoll/ |
|
131 | <td><a href="/rcoll/a/.hg/patches/?style=paper">rcoll/a/.hg/patches</a></td> | |
132 | <td>unknown</td> |
|
132 | <td>unknown</td> | |
133 | <td>Foo Bar <foo.bar@example.com></td> |
|
133 | <td>Foo Bar <foo.bar@example.com></td> | |
134 | <td class="age">seconds ago</td> |
|
134 | <td class="age">seconds ago</td> | |
@@ -136,7 +136,7 b' 200 Script output follows' | |||||
136 | </tr> |
|
136 | </tr> | |
137 |
|
137 | |||
138 | <tr class="parity0"> |
|
138 | <tr class="parity0"> | |
139 |
<td><a href="/rcoll/b/ |
|
139 | <td><a href="/rcoll/b/?style=paper">rcoll/b</a></td> | |
140 | <td>unknown</td> |
|
140 | <td>unknown</td> | |
141 | <td>Foo Bar <foo.bar@example.com></td> |
|
141 | <td>Foo Bar <foo.bar@example.com></td> | |
142 | <td class="age">seconds ago</td> |
|
142 | <td class="age">seconds ago</td> | |
@@ -144,7 +144,7 b' 200 Script output follows' | |||||
144 | </tr> |
|
144 | </tr> | |
145 |
|
145 | |||
146 | <tr class="parity1"> |
|
146 | <tr class="parity1"> | |
147 |
<td><a href="/rcoll/ |
|
147 | <td><a href="/rcoll/b/d/?style=paper">rcoll/b/d</a></td> | |
148 | <td>unknown</td> |
|
148 | <td>unknown</td> | |
149 | <td>Foo Bar <foo.bar@example.com></td> |
|
149 | <td>Foo Bar <foo.bar@example.com></td> | |
150 | <td class="age">seconds ago</td> |
|
150 | <td class="age">seconds ago</td> | |
@@ -152,7 +152,7 b' 200 Script output follows' | |||||
152 | </tr> |
|
152 | </tr> | |
153 |
|
153 | |||
154 | <tr class="parity0"> |
|
154 | <tr class="parity0"> | |
155 |
<td><a href="/ |
|
155 | <td><a href="/rcoll/c/?style=paper">rcoll/c</a></td> | |
156 | <td>unknown</td> |
|
156 | <td>unknown</td> | |
157 | <td>Foo Bar <foo.bar@example.com></td> |
|
157 | <td>Foo Bar <foo.bar@example.com></td> | |
158 | <td class="age">seconds ago</td> |
|
158 | <td class="age">seconds ago</td> | |
@@ -200,7 +200,7 b' 200 Script output follows' | |||||
200 |
|
200 | |||
201 | <table class="bigtable"> |
|
201 | <table class="bigtable"> | |
202 | <tr> |
|
202 | <tr> | |
203 |
<th><a href="?sort= |
|
203 | <th><a href="?sort=name">Name</a></th> | |
204 | <th><a href="?sort=description">Description</a></th> |
|
204 | <th><a href="?sort=description">Description</a></th> | |
205 | <th><a href="?sort=contact">Contact</a></th> |
|
205 | <th><a href="?sort=contact">Contact</a></th> | |
206 | <th><a href="?sort=lastchange">Last change</a></th> |
|
206 | <th><a href="?sort=lastchange">Last change</a></th> |
General Comments 0
You need to be logged in to leave comments.
Login now