|
Script Summary:
Add link to local checkout by link to repository browser. tracのリポジトリブラウザのリンクの傍に、ローカルのチェックアウトへのリンクを追加します。 |
This script has no discussions. |
This script has no reviews. |
this script is experimental.
:::HOW TO INSTALL:::
to enable link to local file,
you have to add following lines in your "user.js":
-----
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://10.68.24.232 http://localhost");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
-----
# see also: http://kb.mozillazine.org/Security_Policies#Ana...
before install, you have to edit 3 lines in the script as follows:
add: @include _url_to_project_root_
add: table[_project_root_] = _path_to_checkout_folder_
tags[_project_root_] = _tagname_you_use_
e.g.
@include http://10.68.24.232/trac/pmwb40/*
table["http://localhost/trac/Example"] = "file://C:/Workspace/example/";
tags["http://localhost/trac/Example"] = "trunk";
== in Japanese/KANJI ==
このスクリプトは現在「実験中」です。
::: 導入 :::
Firefoxでローカルファイルへのリンクを有効にするために、
user.js に、以下のような記述を追加する必要があります:
-----
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://10.68.24.232 http://localhost");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
-----
ホスト名等は適宜読み替えてください。
user.js は、Windowsなら %appdata%\Mozilla\Filrefox\Profiles\ランダム文字列.default\ に置きます。なければ prefs.js と同じフォルダに置いてください。
# 参考:
http://kb.mozillazine.org/Security_Policies#Ana...
インストールの前に、あなたの環境に合わせて、以下のとおり、スクリプトを3行編集する必要があります。
@include tracのプロジェクトルートへのパス を追加する
table[プロジェクトルート] = チェックアウトフォルダ という対応を追加する
tags[プロジェクトルート] = タグ名 という対応を追加する
例:
@include http://10.68.24.232/trac/pmwb40/*
table["http://localhost/trac/Example"] = "file://C:/Workspace/example/";
tags["http://localhost/trac/Example"] = "trunk";





