プロジェクト

全般

プロフィール

Vote #69158

未完了

Root repository directory not displayed with Bazaar on Ubuntu 10.04

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

ステータス:
New
優先度:
低め
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2011/02/02
期日:
進捗率:

0%

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

説明

On the Ubuntu 10.04 default install, the root directory of a Bazaar repository fails to display. The revisions are all present and all subdirectories and contents are present (eg I can manually set the "show" repository URL to pull out the full directory listing and revisions).

I traced this down to the construction of the 'bzr ls -v --show-ids' command at line 55 of 'bazaar_adapter.rb'

The issue is that, for the root directory of a repository, the 'target(path)' is constructed with a trailing '/'. For subdirectories there is no trailing '/' in the constructed path.

The output format of the 'bzr ls' command appears to differ depending on whether there is a trailing '/' or not, which causes the Regexp on line 59 to fail to match in the case of the root directory.

My fix was to change 'bazaar_adapter.rb:55' from:

cmd << " #{target(path)}"

to

cmd << " #{target(path).sub(/\/\'$/, "'")}"

I suspect there is a more elegant solution but this fix works for me!

Component versions as follows:

  • Redmine (Redmine 0.9.3.stable)
  • SQLite 3.6.22
  • Bazaar 2.1.1
  • Ruby 1.8.7
  • Rails 2.2.3-2

Apologies in advance but I don't have time to prepare a proper patch or to test against the latest version. As this is the current Ubuntu LTS release, I expect I'm not the only person who's come across this.

I trust this information is useful!

Regards, Dave


related_issues

relates,New,2799,Support for Bazaar's shared reposetories (created with init-repo)

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

いいね!0
いいね!0