Changeset - 05b59c48556f
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 15 years ago 2011-01-16 12:27:44
marcin@python-works.com
fixed error when trying to make download on empty repository
3 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/changelog.rst
Show inline comments
 
@@ -27,7 +27,7 @@ fixes
 
- fixed file browser bug, when switching into given form revision the url was 
 
  not changing
 
- fixed propagation to error controller on simplehg and simplegit middlewares
 

	
 
- fixed error when trying to make a download on empty repository
 

	
 

	
 
1.1.2 (**2011-01-12**)
rhodecode/controllers/files.py
Show inline comments
 
@@ -173,6 +173,8 @@ class FilesController(BaseController):
 
            repo.get_changeset(revision)
 
        except ChangesetDoesNotExistError:
 
            return _('Unknown revision %s') % revision
 
        except EmptyRepositoryError:
 
            return _('Empty repository')
 

	
 
        archive = tempfile.TemporaryFile()
 
        localrepo = repo.repo
rhodecode/templates/summary/summary.html
Show inline comments
 
@@ -128,7 +128,9 @@
 
			      <label>${_('Download')}:</label>
 
			  </div>
 
			  <div class="input-short">
 
		        
 
		        %if len(c.repo_info.revisions) == 0:
 
		          ${_('There are no downloads yet')}
 
		        %else:
 
		        ${h.select('download_options',c.repo_info.get_changeset().raw_id,c.download_options)}
 
		        %for cnt,archive in enumerate(c.repo_info._get_archives()):
 
		             %if cnt >=1:
 
@@ -139,6 +141,7 @@
 
		                h.url('files_archive_home',repo_name=c.repo_info.name,
 
		                fname='tip'+archive['extension']),class_="archive_icon")}</span>
 
		        %endfor
 
			    %endif
 
			  </div>
 
			 </div>
 
			 
 
@@ -268,7 +271,6 @@
 
    </div>
 
    
 
    <div class="table">
 
        
 
         %if c.no_data:
 
           <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${c.no_data_msg}
 
           %if h.HasPermissionAll('hg.admin')('enable stats on from summary'):
0 comments (0 inline, 0 general)