プロジェクト

全般

プロフィール

Vote #78953

未完了

Default branch should be always first in the graph

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
27559
author_id:
92242
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

In the revisions view, the branches graph shows neat lines for every branch. The branches in this are sorted alphabetically. However, it is much more natural to keep the default branch leftmost all the time, so it is always a straight line. It is how e.g. the network graph in github works.

The attached patch changes the sorting of the branches to ensure, the default branch is always first.


journals

You also need to implement in Mercurial.

<pre>
ActionView::Template::Error (undefined method `is_default' for "default":Redmine::Scm::Adapters::Branch):
1: <div class="autoscroll">
2: <% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %>
3: <%= if show_revision_graph && revisions && revisions.any?
4: indexed_commits, graph_space = index_commits(revisions, @repository.branches) do |scmid|
5: url_for(
6: :controller => 'repositories',
7: :action => 'revision',
app/helpers/repositories_helper.rb:281:in `block in index_commits'
app/helpers/repositories_helper.rb:281:in `each'
app/helpers/repositories_helper.rb:281:in `sort_by'
app/helpers/repositories_helper.rb:281:in `sort_by!'
app/helpers/repositories_helper.rb:281:in `index_commits'
app/views/repositories/_revisions.html.erb:4:in `_app_views_repositories__revisions_html_erb__4466816342598385941_70348597528700'
app/views/repositories/show.html.erb:19:in `_app_views_repositories_show_html_erb___1486259103309881441_49894440'
app/controllers/repositories_controller.rb:97:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
</pre>
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0