Show More
@@ -155,6 +155,12 b' class hgweb:' | |||
|
155 | 155 | if node != hex(nullid): |
|
156 | 156 | yield self.t(t1, node = node, rev = rev, **args) |
|
157 | 157 | |
|
158 | def parents(self, t1, nodes=[], rev=None,**args): | |
|
159 | if not rev: rev = lambda x: "" | |
|
160 | for node in nodes: | |
|
161 | if node != nullid: | |
|
162 | yield self.t(t1, node = hex(node), rev = rev(node), **args) | |
|
163 | ||
|
158 | 164 | def showtag(self, t1, node=nullid, **args): |
|
159 | 165 | for t in self.repo.nodetags(node): |
|
160 | 166 | yield self.t(t1, tag = t, **args) |
@@ -259,10 +265,8 b' class hgweb:' | |||
|
259 | 265 | 'changelogentry', |
|
260 | 266 | parity = parity, |
|
261 | 267 | author = changes[1], |
|
262 | parent1 = self.parent("changelogparent", | |
|
263 |
|
|
|
264 | parent2 = self.parent("changelogparent", | |
|
265 | hex(p2), cl.rev(p2)), | |
|
268 | parent1 = self.parents("changelogparent", | |
|
269 | cl.parents(n), cl.rev), | |
|
266 | 270 | changelogtag = self.showtag("changelogtag",n), |
|
267 | 271 | p1 = hex(p1), p2 = hex(p2), |
|
268 | 272 | p1rev = cl.rev(p1), p2rev = cl.rev(p2), |
@@ -327,10 +331,8 b' class hgweb:' | |||
|
327 | 331 | 'searchentry', |
|
328 | 332 | parity = count & 1, |
|
329 | 333 | author = changes[1], |
|
330 | parent1 = self.parent("changelogparent", | |
|
331 |
|
|
|
332 | parent2 = self.parent("changelogparent", | |
|
333 | hex(p2), cl.rev(p2)), | |
|
334 | parent1 = self.parents("changelogparent", | |
|
335 | cl.parents(n), cl.rev), | |
|
334 | 336 | changelogtag = self.showtag("changelogtag",n), |
|
335 | 337 | p1 = hex(p1), p2 = hex(p2), |
|
336 | 338 | p1rev = cl.rev(p1), p2rev = cl.rev(p2), |
@@ -378,10 +380,8 b' class hgweb:' | |||
|
378 | 380 | diff = diff, |
|
379 | 381 | rev = cl.rev(n), |
|
380 | 382 | node = nodeid, |
|
381 | parent1 = self.parent("changesetparent", | |
|
382 |
|
|
|
383 | parent2 = self.parent("changesetparent", | |
|
384 | hex(p2), cl.rev(p2)), | |
|
383 | parent1 = self.parents("changesetparent", | |
|
384 | cl.parents(n), cl.rev), | |
|
385 | 385 | changesettag = self.showtag("changesettag",n), |
|
386 | 386 | p1 = hex(p1), p2 = hex(p2), |
|
387 | 387 | p1rev = cl.rev(p1), p2rev = cl.rev(p2), |
@@ -462,10 +462,8 b' class hgweb:' | |||
|
462 | 462 | manifest = hex(mfn), |
|
463 | 463 | author = cs[1], |
|
464 | 464 | date = t, |
|
465 | parent1 = self.parent("filerevparent", | |
|
466 |
|
|
|
467 | parent2 = self.parent("filerevparent", | |
|
468 | hex(p2), fl.rev(p2), file=f), | |
|
465 | parent1 = self.parents("filerevparent", | |
|
466 | fl.parents(n), fl.rev, file=f), | |
|
469 | 467 | p1 = hex(p1), p2 = hex(p2), |
|
470 | 468 | permissions = self.repo.manifest.readflags(mfn)[f], |
|
471 | 469 | p1rev = fl.rev(p1), p2rev = fl.rev(p2)) |
@@ -531,10 +529,8 b' class hgweb:' | |||
|
531 | 529 | manifest = hex(mfn), |
|
532 | 530 | author = cs[1], |
|
533 | 531 | date = t, |
|
534 | parent1 = self.parent("fileannotateparent", | |
|
535 |
|
|
|
536 | parent2 = self.parent("fileannotateparent", | |
|
537 | hex(p2), fl.rev(p2), file=f), | |
|
532 | parent1 = self.parents("fileannotateparent", | |
|
533 | fl.parents(n), fl.rev, file=f), | |
|
538 | 534 | p1 = hex(p1), p2 = hex(p2), |
|
539 | 535 | permissions = self.repo.manifest.readflags(mfn)[f], |
|
540 | 536 | p1rev = fl.rev(p1), p2rev = fl.rev(p2)) |
General Comments 0
You need to be logged in to leave comments.
Login now