Show More
@@ -27,7 +27,7 b' fixes' | |||
|
27 | 27 | - fixed file browser bug, when switching into given form revision the url was |
|
28 | 28 | not changing |
|
29 | 29 | - fixed propagation to error controller on simplehg and simplegit middlewares |
|
30 | ||
|
30 | - fixed error when trying to make a download on empty repository | |
|
31 | 31 | |
|
32 | 32 | |
|
33 | 33 | 1.1.2 (**2011-01-12**) |
@@ -173,6 +173,8 b' class FilesController(BaseController):' | |||
|
173 | 173 | repo.get_changeset(revision) |
|
174 | 174 | except ChangesetDoesNotExistError: |
|
175 | 175 | return _('Unknown revision %s') % revision |
|
176 | except EmptyRepositoryError: | |
|
177 | return _('Empty repository') | |
|
176 | 178 | |
|
177 | 179 | archive = tempfile.TemporaryFile() |
|
178 | 180 | localrepo = repo.repo |
@@ -128,7 +128,9 b'' | |||
|
128 | 128 | <label>${_('Download')}:</label> |
|
129 | 129 | </div> |
|
130 | 130 | <div class="input-short"> |
|
131 | ||
|
131 | %if len(c.repo_info.revisions) == 0: | |
|
132 | ${_('There are no downloads yet')} | |
|
133 | %else: | |
|
132 | 134 | ${h.select('download_options',c.repo_info.get_changeset().raw_id,c.download_options)} |
|
133 | 135 | %for cnt,archive in enumerate(c.repo_info._get_archives()): |
|
134 | 136 | %if cnt >=1: |
@@ -139,6 +141,7 b'' | |||
|
139 | 141 | h.url('files_archive_home',repo_name=c.repo_info.name, |
|
140 | 142 | fname='tip'+archive['extension']),class_="archive_icon")}</span> |
|
141 | 143 | %endfor |
|
144 | %endif | |
|
142 | 145 | </div> |
|
143 | 146 | </div> |
|
144 | 147 | |
@@ -268,7 +271,6 b'' | |||
|
268 | 271 | </div> |
|
269 | 272 | |
|
270 | 273 | <div class="table"> |
|
271 | ||
|
272 | 274 | %if c.no_data: |
|
273 | 275 | <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${c.no_data_msg} |
|
274 | 276 | %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): |
General Comments 0
You need to be logged in to leave comments.
Login now