222 infoDict[name] = value |
222 infoDict[name] = value |
223 |
223 |
224 # step 2: build the output |
224 # step 2: build the output |
225 if infoDict: |
225 if infoDict: |
226 info = ["<table>"] |
226 info = ["<table>"] |
227 pindex = 0 |
227 for pindex, (rev, node, tags, message, remarks) in enumerate( |
228 for rev, node, tags, message, remarks in infoDict["parent"]: |
228 infoDict["parent"], start=1 |
229 pindex += 1 |
229 ): |
230 changeset = "{0}:{1}".format(rev, node) |
230 changeset = "{0}:{1}".format(rev, node) |
231 if len(infoDict["parent"]) > 1: |
231 if len(infoDict["parent"]) > 1: |
232 info.append(self.tr( |
232 info.append(self.tr( |
233 "<tr><td><b>Parent #{0}</b></td><td>{1}</td></tr>") |
233 "<tr><td><b>Parent #{0}</b></td><td>{1}</td></tr>") |
234 .format(pindex, changeset)) |
234 .format(pindex, changeset)) |