Show More
@@ -619,11 +619,11 b' class hgweb(object):' | |||||
619 | 'zip': ('application/zip', 'zip', '.zip', None), |
|
619 | 'zip': ('application/zip', 'zip', '.zip', None), | |
620 | } |
|
620 | } | |
621 |
|
621 | |||
622 |
def archive(self, req, |
|
622 | def archive(self, req, key, type_): | |
623 | reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) |
|
623 | reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) | |
624 |
cnode = self.repo.lookup( |
|
624 | cnode = self.repo.lookup(key) | |
625 |
arch_version = |
|
625 | arch_version = key | |
626 |
if cnode == |
|
626 | if cnode == key or key == 'tip': | |
627 | arch_version = short(cnode) |
|
627 | arch_version = short(cnode) | |
628 | name = "%s-%s" % (reponame, arch_version) |
|
628 | name = "%s-%s" % (reponame, arch_version) | |
629 | mimetype, artype, extension, encoding = self.archive_specs[type_] |
|
629 | mimetype, artype, extension, encoding = self.archive_specs[type_] |
General Comments 0
You need to be logged in to leave comments.
Login now