Actions
Feature #3345
closedLink to view subversion directory changelog
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2009-05-12
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Description
In the repository view there is the ability to view the changelog of an individual file or drop down into a subdirectory, however it would be very useful to be able to view the changelog of a directory (as you can with the top-level of a repository).
I have a very simple patch to demonstrate this:
Index: app/views/repositories/_dir_list_content.rhtml
===================================================================
--- app/views/repositories/_dir_list_content.rhtml (revision 2717)
+++ app/views/repositories/_dir_list_content.rhtml (working copy)
@@ -19,6 +19,12 @@
<td class="revision"><%= link_to(format_revision(entry.lastrev.name), :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %></td>
<td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
<td class="author"><%= changeset.nil? ? h(entry.lastrev.author.to_s.split('<').first) : changeset.author if entry.lastrev %></td>
-<td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.nil? %></td>
+<td class="comments">
+ <%=h truncate(changeset.comments, 50) unless changeset.nil? %>
+ <%= if entry.is_dir?
+ link_to '(all)',
+ {:action => 'changes', :id => @project, :path => to_path_param(entry.path), :rev => @rev}
+ end %>
+</td>
</tr>
<% end %>
It may be that there is a way to do this already, but I couldn't find it or any mention of it!
Files
Related issues
Actions