622 parent=self.siblings(cl.parents(n), cl.rev), |
622 parent=self.siblings(cl.parents(n), cl.rev), |
623 child=self.siblings(cl.children(n), cl.rev), |
623 child=self.siblings(cl.children(n), cl.rev), |
624 diff=diff) |
624 diff=diff) |
625 |
625 |
626 archive_specs = { |
626 archive_specs = { |
627 'bz2': ('application/x-tar', 'tbz2', '.tar.bz2', 'x-bzip2'), |
627 'bz2': ('application/x-tar', 'tbz2', '.tar.bz2', None), |
628 'gz': ('application/x-tar', 'tgz', '.tar.gz', 'x-gzip'), |
628 'gz': ('application/x-tar', 'tgz', '.tar.gz', None), |
629 'zip': ('application/zip', 'zip', '.zip', None), |
629 'zip': ('application/zip', 'zip', '.zip', None), |
630 } |
630 } |
631 |
631 |
632 def archive(self, req, cnode, type): |
632 def archive(self, req, cnode, type): |
633 reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) |
633 reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) |