プロジェクト

全般

プロフィール

Vote #63657

完了

Bazaar repository browsing

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
3
version_id:
2
issue_org_id:
1685
author_id:
1703
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When using Redmine with shared bzr repository (only .bzr dir) repository browser doesn't show any files.
It is caused by using 'bzr ls' command without arguments. To show last revision 'bzr ls' should be called with '-r last:1' or '-r -1' param (they are equal).
So here is the patch:

Index: lib/redmine/scm/adapters/bazaar_adapter.rb
===================================================================
--- lib/redmine/scm/adapters/bazaar_adapter.rb  (revision 1699)
+++ lib/redmine/scm/adapters/bazaar_adapter.rb  (working copy)
@@ -50,7 +50,8 @@
           path ||= ''
           entries = Entries.new
           cmd = "#{BZR_BIN} ls -v --show-ids"
-          cmd << " -r#{identifier.to_i}" if identifier && identifier.to_i > 0
+          identifier=-1 unless identifier && identifier.to_i > 0 
+          cmd << " -r#{identifier.to_i}" 
           cmd << " #{target(path)}"
           shellout(cmd) do |io|
             prefix = "#{url}/#{path}".gsub('\\', '/')

journals

Committed in r1994. Thanks for the fix.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.8_2 にセット

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

いいね!0
いいね!0