Project

General

Profile

Actions

Feature #3345

closed

Link to view subversion directory changelog

Added by James Wells almost 15 years ago. Updated over 14 years ago.

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

3345.diff (1.07 KB) 3345.diff James Wells, 2009-05-12 22:15

Related issues

Is duplicate of Redmine - Feature #1311: Subversion: Show revision histories for branchesNew2008-05-27

Actions
Actions

Also available in: Atom PDF