プロジェクト

全般

プロフィール

Vote #62817

完了

Fix browsing mercurial repositories

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

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

0%

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

説明

Running redmine on linux, I wasn't able to browse a mercurial repository.

Listing entries using @hg locate@ :

  • should use '/' to split entries path, not '\' ('\').
  • should filter files with @glob:**@. Restricting paths to a depth of 2 does not work for deep repository trees like :
    README
    images/delete.png
    images/edit.png
    sources/deep/tree/few/files.txt
    sources/watchers_controller.rb
    

journals

Patch successfully used by a user: http://www.redmine.org/boards/2/topics/show/26
--------------------------------------------------------------------------------
Thanks for pointing out this problem.
I made slight changes to your patch to preserve win32 compatibility and committed it in r1228.

Here are the changes:

cmd << " 'glob:**'"

=> (makes it work under win32, but not sure for *nix)

cmd << " glob:**"

and

e = line.chomp.split('/')

=>

e = line.chomp.split(%r{[\/\\]})

Please, let me know if the first change is not ok.
--------------------------------------------------------------------------------
In r1229, @glob:**@ is quoted properly depending on the os.
It should work fine on both *nix and win32 os.
--------------------------------------------------------------------------------
Works very well for me.

Thanks for the clarification !
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0