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