equal
deleted
inserted
replaced
545 'branch': t, |
545 'branch': t, |
546 'node': hex(n), |
546 'node': hex(n), |
547 'date': ctx.date()} |
547 'date': ctx.date()} |
548 parity += 1 |
548 parity += 1 |
549 |
549 |
550 def heads(**map): |
|
551 parity = 0 |
|
552 count = 0 |
|
553 |
|
554 for node in self.repo.heads(): |
|
555 count += 1 |
|
556 if count > 10: |
|
557 break; |
|
558 |
|
559 ctx = self.repo.changectx(node) |
|
560 |
|
561 yield {'parity': self.stripes(parity), |
|
562 'branch': ctx.branch(), |
|
563 'node': hex(node), |
|
564 'date': ctx.date()} |
|
565 parity += 1 |
|
566 |
|
567 def changelist(**map): |
550 def changelist(**map): |
568 parity = 0 |
551 parity = 0 |
569 l = [] # build a list in forward order for efficiency |
552 l = [] # build a list in forward order for efficiency |
570 for i in xrange(start, end): |
553 for i in xrange(start, end): |
571 ctx = self.repo.changectx(i) |
554 ctx = self.repo.changectx(i) |
594 self.config("web", "contact") or # deprecated |
577 self.config("web", "contact") or # deprecated |
595 self.config("web", "author", "unknown")), # also |
578 self.config("web", "author", "unknown")), # also |
596 lastchange=cl.read(cl.tip())[2], |
579 lastchange=cl.read(cl.tip())[2], |
597 tags=tagentries, |
580 tags=tagentries, |
598 branches=branches, |
581 branches=branches, |
599 heads=heads, |
|
600 shortlog=changelist, |
582 shortlog=changelist, |
601 node=hex(cl.tip()), |
583 node=hex(cl.tip()), |
602 archives=self.archivelist("tip")) |
584 archives=self.archivelist("tip")) |
603 |
585 |
604 def filediff(self, fctx): |
586 def filediff(self, fctx): |