Show More
@@ -284,7 +284,7 b' class hgweb(object):' | |||
|
284 | 284 | |
|
285 | 285 | allow_read = self.configlist('web', 'allow_read') |
|
286 | 286 | result = (not allow_read) or (allow_read == ['*']) |
|
287 | if not result or user in allow_read: | |
|
287 | if not (result or user in allow_read): | |
|
288 | 288 | raise ErrorResponse(HTTP_UNAUTHORIZED, 'read not authorized') |
|
289 | 289 | |
|
290 | 290 | if op == 'pull' and not self.allowpull: |
@@ -7,7 +7,7 b'' | |||
|
7 | 7 | |
|
8 | 8 | from node import nullid, short |
|
9 | 9 | from i18n import _ |
|
10 | import revlog, util | |
|
10 | import revlog, util, error | |
|
11 | 11 | |
|
12 | 12 | def verify(repo): |
|
13 | 13 | lock = repo.lock() |
@@ -172,13 +172,18 b' def _verify(repo):' | |||
|
172 | 172 | |
|
173 | 173 | files = util.sort(util.unique(filenodes.keys() + filelinkrevs.keys())) |
|
174 | 174 | for f in files: |
|
175 | lr = filelinkrevs[f][0] | |
|
176 | try: | |
|
175 | 177 | fl = repo.file(f) |
|
178 | except error.RevlogError, e: | |
|
179 | err(lr, _("broken revlog! (%s)") % e, f) | |
|
180 | continue | |
|
176 | 181 | |
|
177 | 182 | for ff in fl.files(): |
|
178 | 183 | try: |
|
179 | 184 | del storefiles[ff] |
|
180 | 185 | except KeyError: |
|
181 |
err( |
|
|
186 | err(lr, _("missing revlog!"), ff) | |
|
182 | 187 | |
|
183 | 188 | checklog(fl, f) |
|
184 | 189 | seen = {} |
@@ -36,8 +36,8 b' checking manifests' | |||
|
36 | 36 | crosschecking files in changesets and manifests |
|
37 | 37 | checking files |
|
38 | 38 | data/a.i@0: missing revlog! |
|
39 |
data/a.i.hg.hg/c.i@ |
|
|
40 |
data/a.i.hg/b.i@ |
|
|
39 | data/a.i.hg.hg/c.i@2: missing revlog! | |
|
40 | data/a.i.hg/b.i@1: missing revlog! | |
|
41 | 41 | 3 files, 3 changesets, 3 total revisions |
|
42 | 42 | 3 integrity errors encountered! |
|
43 | 43 | (first damaged changeset appears to be 0) |
General Comments 0
You need to be logged in to leave comments.
Login now