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