Show More
@@ -427,13 +427,14 b' class verifier(object):' | |||||
427 | # 2. hash check: depending on flag processor, we may need to |
|
427 | # 2. hash check: depending on flag processor, we may need to | |
428 | # use either "text" (external), or "rawtext" (in revlog). |
|
428 | # use either "text" (external), or "rawtext" (in revlog). | |
429 | try: |
|
429 | try: | |
430 | l = len(fl.read(n)) |
|
430 | fl.read(n) # side effect: read content and do checkhash | |
431 | rp = fl.renamed(n) |
|
431 | rp = fl.renamed(n) | |
432 |
|
|
432 | # the "L1 == L2" check | |
433 | # the "L1 == L2" check |
|
433 | l1 = fl.rawsize(i) | |
434 |
|
|
434 | l2 = len(fl.revision(n, raw=True)) | |
435 | self.err(lr, _("unpacked size is %s, %s expected") % |
|
435 | if l1 != l2: | |
436 | (l, fl.size(i)), f) |
|
436 | self.err(lr, _("unpacked size is %s, %s expected") % | |
|
437 | (l2, l1), f) | |||
437 | except error.CensoredNodeError: |
|
438 | except error.CensoredNodeError: | |
438 | # experimental config: censor.policy |
|
439 | # experimental config: censor.policy | |
439 | if ui.config("censor", "policy", "abort") == "abort": |
|
440 | if ui.config("censor", "policy", "abort") == "abort": |
General Comments 0
You need to be logged in to leave comments.
Login now