Show More
@@ -94,6 +94,25 b' class verifier(object):' | |||
|
94 | 94 | self._warn(_("warning: `%s' uses revlog format 0") % name) |
|
95 | 95 | |
|
96 | 96 | def checkentry(self, obj, i, node, seen, linkrevs, f): |
|
97 | """verify a single revlog entry | |
|
98 | ||
|
99 | arguments are: | |
|
100 | - obj: the source revlog | |
|
101 | - i: the revision number | |
|
102 | - node: the revision node id | |
|
103 | - seen: nodes previously seen for this revlog | |
|
104 | - linkrevs: [changelog-revisions] introducing "node" | |
|
105 | - f: string label ("changelog", "manifest", or filename) | |
|
106 | ||
|
107 | Performs the following checks: | |
|
108 | - linkrev points to an existing changelog revision, | |
|
109 | - linkrev points to a changelog revision that introduces this revision, | |
|
110 | - linkrev points to the lowest of these changesets, | |
|
111 | - both parents exist in the revlog, | |
|
112 | - the revision is not duplicated. | |
|
113 | ||
|
114 | Return the linkrev of the revision (or None for changelog's revisions). | |
|
115 | """ | |
|
97 | 116 | lr = obj.linkrev(obj.rev(node)) |
|
98 | 117 | if lr < 0 or (self.havecl and lr not in linkrevs): |
|
99 | 118 | if lr < 0 or lr >= len(self.repo.changelog): |
General Comments 0
You need to be logged in to leave comments.
Login now