##// END OF EJS Templates
verify: rename "hasmanifest" variable for source code readability...
FUJIWARA Katsunori -
r17720:9a1796af default
parent child Browse files
Show More
@@ -120,7 +120,7 b' def _verify(repo):'
120 havemf = len(mf) > 0
120 havemf = len(mf) > 0
121
121
122 ui.status(_("checking changesets\n"))
122 ui.status(_("checking changesets\n"))
123 hasmanifest = False
123 refersmf = False
124 seen = {}
124 seen = {}
125 checklog(cl, "changelog", 0)
125 checklog(cl, "changelog", 0)
126 total = len(repo)
126 total = len(repo)
@@ -133,17 +133,17 b' def _verify(repo):'
133 changes = cl.read(n)
133 changes = cl.read(n)
134 if changes[0] != nullid:
134 if changes[0] != nullid:
135 mflinkrevs.setdefault(changes[0], []).append(i)
135 mflinkrevs.setdefault(changes[0], []).append(i)
136 hasmanifest = True
136 refersmf = True
137 for f in changes[3]:
137 for f in changes[3]:
138 filelinkrevs.setdefault(f, []).append(i)
138 filelinkrevs.setdefault(f, []).append(i)
139 except Exception, inst:
139 except Exception, inst:
140 hasmanifest = True
140 refersmf = True
141 exc(i, _("unpacking changeset %s") % short(n), inst)
141 exc(i, _("unpacking changeset %s") % short(n), inst)
142 ui.progress(_('checking'), None)
142 ui.progress(_('checking'), None)
143
143
144 ui.status(_("checking manifests\n"))
144 ui.status(_("checking manifests\n"))
145 seen = {}
145 seen = {}
146 if hasmanifest:
146 if refersmf:
147 # Do not check manifest if there are only changelog entries with
147 # Do not check manifest if there are only changelog entries with
148 # null manifests.
148 # null manifests.
149 checklog(mf, "manifest", 0)
149 checklog(mf, "manifest", 0)
General Comments 0
You need to be logged in to leave comments. Login now