Commits

Marcin Kuzminski committed c3661cf

fixed bug for last commit message in file source

Comments (0)

Files changed (2)

pylons_app/controllers/files.py

                              revision=next_rev, f_path=f_path)   
                     
             c.changeset = repo.get_changeset(revision)
-            try:
-                c.file_msg = c.changeset.get_file_message(f_path)
-            except:
-                c.file_msg = None
+
                         
             c.cur_rev = c.changeset.raw_id
             c.rev_nr = c.changeset.revision

pylons_app/templates/files/files_source.html

 <div id="body" class="codeblock">
 	<div class="code-header">
 		<div class="revision">${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</div>
-		<div class="commit" style="font-size:70%">"${c.file_msg}"</div>
+		<div class="commit" style="font-size:70%">"${c.files_list.last_changeset.message}"</div>
 	</div>
 	<div class="code-body">
 		${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}