]> source.dussan.org Git - redmine.git/log
redmine.git
13 years agoscm: Ruby 1.9 compatibility for log.
Toshi MARUYAMA [Tue, 22 Feb 2011 13:39:12 +0000 (13:39 +0000)]
scm: Ruby 1.9 compatibility for log.

Remove assuming UTF-8 is valid.
"\xC2\x80" of latin-1(iso-8859-1) is valid sequence of UTF-8.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4925 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: fix unit changeset_test.rb test methods calls randomly.
Toshi MARUYAMA [Tue, 22 Feb 2011 12:16:08 +0000 (12:16 +0000)]
scm: fix unit changeset_test.rb test methods calls randomly.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4924 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: log and entries path encoding support in adapter (#2664).
Toshi MARUYAMA [Tue, 22 Feb 2011 08:47:19 +0000 (08:47 +0000)]
scm: mercurial: log and entries path encoding support in adapter (#2664).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4923 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: Ruby 1.9 compatibility for diff, cat and blame (#2664).
Toshi MARUYAMA [Tue, 22 Feb 2011 08:29:35 +0000 (08:29 +0000)]
scm: Ruby 1.9 compatibility for diff, cat and blame (#2664).

"\xC2\x80" of latin1(iso-8859-1) is valid sequence of UTF-8.
to_utf8() should not return string if it is UTF-8 valid_encoding.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4922 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: Ruby 1.9 compatibility for browsing repository tree (#2664, #2274).
Toshi MARUYAMA [Tue, 22 Feb 2011 08:16:05 +0000 (08:16 +0000)]
scm: Ruby 1.9 compatibility for browsing repository tree (#2664, #2274).

If repository path is not UTF-8, Ruby 1.9 shows trace.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4921 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: Ruby 1.9 compatibility in getting scm version (#4273).
Toshi MARUYAMA [Tue, 22 Feb 2011 08:05:51 +0000 (08:05 +0000)]
scm: Ruby 1.9 compatibility in getting scm version (#4273).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4920 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: override initialize() for path encoding (#2664).
Toshi MARUYAMA [Tue, 22 Feb 2011 08:05:29 +0000 (08:05 +0000)]
scm: mercurial: override initialize() for path encoding (#2664).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4919 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: Ruby 1.9 compatibility of adapter test (#3396).
Toshi MARUYAMA [Tue, 22 Feb 2011 00:40:02 +0000 (00:40 +0000)]
scm: git: Ruby 1.9 compatibility of adapter test (#3396).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4918 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoMoves scm path configuration examples in comments.
Jean-Philippe Lang [Mon, 21 Feb 2011 17:40:54 +0000 (17:40 +0000)]
Moves scm path configuration examples in comments.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4917 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoExtracts gantt subjects styles to css (#7280).
Jean-Philippe Lang [Mon, 21 Feb 2011 17:10:15 +0000 (17:10 +0000)]
Extracts gantt subjects styles to css (#7280).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4916 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoRemoved .settings folder (#7676).
Jean-Philippe Lang [Mon, 21 Feb 2011 15:26:43 +0000 (15:26 +0000)]
Removed .settings folder (#7676).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4915 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoAdds full subject as gantt subject title (#7280).
Jean-Philippe Lang [Mon, 21 Feb 2011 15:17:52 +0000 (15:17 +0000)]
Adds full subject as gantt subject title (#7280).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4914 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoPrevent text wrap in gantt subjects (#7280).
Jean-Philippe Lang [Mon, 21 Feb 2011 15:06:11 +0000 (15:06 +0000)]
Prevent text wrap in gantt subjects (#7280).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4913 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: prevent diff shows trace if UTF-8 is invalid in Ruby 1.9.
Toshi MARUYAMA [Mon, 21 Feb 2011 14:28:41 +0000 (14:28 +0000)]
scm: prevent diff shows trace if UTF-8 is invalid in Ruby 1.9.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4912 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoMakes filters behaviour consistent with the issue list.
Jean-Philippe Lang [Mon, 21 Feb 2011 14:02:22 +0000 (14:02 +0000)]
Makes filters behaviour consistent with the issue list.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4911 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoMakes title/filters consistent with the issue list.
Jean-Philippe Lang [Mon, 21 Feb 2011 13:58:08 +0000 (13:58 +0000)]
Makes title/filters consistent with the issue list.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4910 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoPreserve Issues/Gantt/Calendar tab when displaying a saved query (#7605).
Jean-Philippe Lang [Mon, 21 Feb 2011 13:52:19 +0000 (13:52 +0000)]
Preserve Issues/Gantt/Calendar tab when displaying a saved query (#7605).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4909 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoSplits private/public issue queries in the sidebar (#1067).
Jean-Philippe Lang [Mon, 21 Feb 2011 13:34:33 +0000 (13:34 +0000)]
Splits private/public issue queries in the sidebar (#1067).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4908 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: filesystem: refactor for path encoding (#2274).
Toshi MARUYAMA [Mon, 21 Feb 2011 12:10:39 +0000 (12:10 +0000)]
scm: filesystem: refactor for path encoding (#2274).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4907 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: add "scm_iconv" method for repository path encoding in abstract_adapter.rb ...
Toshi MARUYAMA [Mon, 21 Feb 2011 12:10:16 +0000 (12:10 +0000)]
scm: add "scm_iconv" method for repository path encoding in abstract_adapter.rb (#2664, #2274).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4906 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoUpdgraded Rails to 2.3.11 (#6887).
Jean-Philippe Lang [Mon, 21 Feb 2011 11:02:18 +0000 (11:02 +0000)]
Updgraded Rails to 2.3.11 (#6887).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4904 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoAdded Persian translation contributed by Behrang Noroozinia (#7418).
Jean-Philippe Lang [Mon, 21 Feb 2011 10:08:59 +0000 (10:08 +0000)]
Added Persian translation contributed by Behrang Noroozinia (#7418).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4903 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoFills locales with new strings.
Jean-Philippe Lang [Mon, 21 Feb 2011 10:02:47 +0000 (10:02 +0000)]
Fills locales with new strings.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4902 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoUpdated basque and czech translations. Contributed by Ales Zabala Alava and Michal...
Jean-Philippe Lang [Mon, 21 Feb 2011 10:01:47 +0000 (10:01 +0000)]
Updated basque and czech translations. Contributed by Ales Zabala Alava and Michal Gebauer.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4901 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoWarning on leaving a page with unsaved content in textarea (#2910).
Jean-Philippe Lang [Mon, 21 Feb 2011 09:53:29 +0000 (09:53 +0000)]
Warning on leaving a page with unsaved content in textarea (#2910).

The warning can be turned off in the user's preference.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4900 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: add CP932 at Setting::ENCODINGS (#2664, #2274).
Toshi MARUYAMA [Mon, 21 Feb 2011 09:41:34 +0000 (09:41 +0000)]
scm: add CP932 at Setting::ENCODINGS (#2664, #2274).

CP932 is variant Japanese Shift_JIS on Windows.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4899 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add 'rhcat' function using URL encoding in mercurial helper extension...
Toshi MARUYAMA [Mon, 21 Feb 2011 04:00:12 +0000 (04:00 +0000)]
scm: mercurial: add 'rhcat' function using URL encoding in mercurial helper extension (#2664).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4898 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoRuby 1.9 compatibility of unified_diff.rb.
Toshi MARUYAMA [Mon, 21 Feb 2011 03:59:50 +0000 (03:59 +0000)]
Ruby 1.9 compatibility of unified_diff.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4897 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: subversion: change some functional tests project id from 1 to 3.
Toshi MARUYAMA [Mon, 21 Feb 2011 03:59:30 +0000 (03:59 +0000)]
scm: subversion: change some functional tests project id from 1 to 3.

TODO: remaining tests read fixture. All tests need to read test repository.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4896 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoAllow additional workflow transitions for issue author and assignee (#2732).
Jean-Philippe Lang [Sun, 20 Feb 2011 15:38:07 +0000 (15:38 +0000)]
Allow additional workflow transitions for issue author and assignee (#2732).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4895 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoFixed: date part of the time default format doesn't respect the date format (#7639).
Jean-Philippe Lang [Sun, 20 Feb 2011 14:56:37 +0000 (14:56 +0000)]
Fixed: date part of the time default format doesn't respect the date format (#7639).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4894 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: move "--no-color" option from scm_cmd() to revision().
Toshi MARUYAMA [Sun, 20 Feb 2011 14:49:09 +0000 (14:49 +0000)]
scm: git: move "--no-color" option from scm_cmd() to revision().

Ruby 1.9.2 test fails.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4893 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoUse #custom_field_values to display issue custom fields in email, just like on regula...
Jean-Philippe Lang [Sun, 20 Feb 2011 14:27:34 +0000 (14:27 +0000)]
Use #custom_field_values to display issue custom fields in email, just like on regular views (#7604).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4892 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoDo not keep illegitimate custom_values when setting custom_field_values (#7604).
Jean-Philippe Lang [Sun, 20 Feb 2011 14:26:23 +0000 (14:26 +0000)]
Do not keep illegitimate custom_values when setting custom_field_values (#7604).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4891 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoFixed: Workflow summary shows X icon for workflow with exactly 1 status transition...
Jean-Philippe Lang [Sun, 20 Feb 2011 13:13:10 +0000 (13:13 +0000)]
Fixed: Workflow summary shows X icon for workflow with exactly 1 status transition (#7611).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4890 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoFixed: Syntax highlighting unavailable from board new topic or topic edit preview...
Jean-Philippe Lang [Sun, 20 Feb 2011 13:11:10 +0000 (13:11 +0000)]
Fixed: Syntax highlighting unavailable from board new topic or topic edit preview (#7625).

Contributed by Etienne Massip.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4889 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoFixed: SQL error when filtering issues with an empty group or role (#7656).
Jean-Philippe Lang [Sun, 20 Feb 2011 13:03:32 +0000 (13:03 +0000)]
Fixed: SQL error when filtering issues with an empty group or role (#7656).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4888 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: fix wrong commit range in git log command on Windows (#7657).
Toshi MARUYAMA [Sun, 20 Feb 2011 01:33:50 +0000 (01:33 +0000)]
scm: git: fix wrong commit range in git log command on Windows (#7657).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4887 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: add new method 'scm_cmd' to wrap shellout.
Toshi MARUYAMA [Sun, 20 Feb 2011 01:33:30 +0000 (01:33 +0000)]
scm: git: add new method 'scm_cmd' to wrap shellout.

Refer Mercurial adapter r4830.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4886 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: add --no-color option to run "git --version".
Toshi MARUYAMA [Sun, 20 Feb 2011 01:33:09 +0000 (01:33 +0000)]
scm: git: add --no-color option to run "git --version".

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4885 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: code cleanup.
Toshi MARUYAMA [Sat, 19 Feb 2011 10:34:37 +0000 (10:34 +0000)]
scm: mercurial: code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4884 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: change select label to 'Path to repository'.
Toshi MARUYAMA [Sat, 19 Feb 2011 06:42:50 +0000 (06:42 +0000)]
scm: git: change select label to 'Path to repository'.

Redmine requires bare repository. '.git' is confusing.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4883 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: catch exception of getting command and version in model (#4273).
Toshi MARUYAMA [Sat, 19 Feb 2011 01:11:48 +0000 (01:11 +0000)]
scm: catch exception of getting command and version in model (#4273).

If command does not exist, Windows raises exception in shellout().
Linux does not raise exception.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4882 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: darcs: override client_available method (#4273).
Toshi MARUYAMA [Sat, 19 Feb 2011 01:11:30 +0000 (01:11 +0000)]
scm: darcs: override client_available method (#4273).

I forgot it.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4881 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: darcs: space cleanup in adapter.
Toshi MARUYAMA [Sat, 19 Feb 2011 00:56:13 +0000 (00:56 +0000)]
scm: darcs: space cleanup in adapter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4880 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: fix exception operation in adapter all methods using xml and io.read...
Toshi MARUYAMA [Fri, 18 Feb 2011 14:49:31 +0000 (14:49 +0000)]
scm: mercurial: fix exception operation in adapter all methods using xml and io.read (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4879 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: simplify fixing exception operation in adapter "summary" method ...
Toshi MARUYAMA [Fri, 18 Feb 2011 14:49:09 +0000 (14:49 +0000)]
scm: mercurial: simplify fixing exception operation in adapter "summary" method (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4878 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: fix exception operation in adapter "summary" method (#4455).
Toshi MARUYAMA [Fri, 18 Feb 2011 12:44:43 +0000 (12:44 +0000)]
scm: mercurial: fix exception operation in adapter "summary" method (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4876 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: unit test for named branches at adapter (#7246).
Toshi MARUYAMA [Fri, 18 Feb 2011 07:15:58 +0000 (07:15 +0000)]
scm: mercurial: unit test for named branches at adapter (#7246).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4875 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: support named branches at adapter (#7246).
Toshi MARUYAMA [Fri, 18 Feb 2011 07:15:37 +0000 (07:15 +0000)]
scm: mercurial: support named branches at adapter (#7246).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4874 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: unit test for tags at adapter (#1981).
Toshi MARUYAMA [Fri, 18 Feb 2011 07:15:13 +0000 (07:15 +0000)]
scm: mercurial: unit test for tags at adapter (#1981).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4873 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: support tags at adapter (#1981).
Toshi MARUYAMA [Fri, 18 Feb 2011 07:14:51 +0000 (07:14 +0000)]
scm: mercurial: support tags at adapter (#1981).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4872 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: temporary disable tags and branches at model (#1981, #7246, #4455).
Toshi MARUYAMA [Fri, 18 Feb 2011 07:14:32 +0000 (07:14 +0000)]
scm: mercurial: temporary disable tags and branches at model (#1981, #7246, #4455).

Until latest_changesets supports tags and branches.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4871 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: unit app test for latest_changesets SQL "like" special character...
Toshi MARUYAMA [Fri, 18 Feb 2011 05:55:45 +0000 (05:55 +0000)]
scm: mercurial: unit app test for latest_changesets SQL "like" special character '%' and '_'.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4870 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: unit app test for latest_changeset.
Toshi MARUYAMA [Fri, 18 Feb 2011 05:55:25 +0000 (05:55 +0000)]
scm: mercurial: unit app test for latest_changeset.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4869 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: improvement latest_changesets without supporting tags and named branc...
Toshi MARUYAMA [Fri, 18 Feb 2011 05:55:02 +0000 (05:55 +0000)]
scm: mercurial: improvement latest_changesets without supporting tags and named branches (#4455).

Based on latest-changesets-improvements-2.diff of #6159.
http://www.redmine.org/attachments/4332/latest-changesets-improvements-2.diff

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4868 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: entries unit lib test for named branch (#7246).
Toshi MARUYAMA [Fri, 18 Feb 2011 05:00:07 +0000 (05:00 +0000)]
scm: mercurial: entries unit lib test for named branch (#7246).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4867 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: entries unit lib test for tag (#1981).
Toshi MARUYAMA [Fri, 18 Feb 2011 04:59:45 +0000 (04:59 +0000)]
scm: mercurial: entries unit lib test for tag (#1981).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4866 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: remove "TODO" comment and fix indent of unit lib test.
Toshi MARUYAMA [Fri, 18 Feb 2011 04:20:40 +0000 (04:20 +0000)]
scm: mercurial: remove "TODO" comment and fix indent of unit lib test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4865 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: unit lib test for entries (#3421).
Toshi MARUYAMA [Fri, 18 Feb 2011 04:13:40 +0000 (04:13 +0000)]
scm: mercurial: unit lib test for entries (#3421).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4864 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: move entries unit test from app to lib.
Toshi MARUYAMA [Fri, 18 Feb 2011 04:13:17 +0000 (04:13 +0000)]
scm: mercurial: move entries unit test from app to lib.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4863 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: fix unit lib test_info test fails on Windows.
Toshi MARUYAMA [Fri, 18 Feb 2011 00:58:08 +0000 (00:58 +0000)]
scm: mercurial: fix unit lib test_info test fails on Windows.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4862 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: space cleanup of lib/redmine/scm/adapters/abstract_adapter.rb.
Toshi MARUYAMA [Fri, 18 Feb 2011 00:57:43 +0000 (00:57 +0000)]
scm: space cleanup of lib/redmine/scm/adapters/abstract_adapter.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4861 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: fix diff revision param validation.
Toshi MARUYAMA [Thu, 17 Feb 2011 14:17:04 +0000 (14:17 +0000)]
scm: fix diff revision param validation.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4860 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: fix Ruby 1.9 "hg diff" test fails (#7518).
Toshi MARUYAMA [Wed, 16 Feb 2011 16:06:24 +0000 (16:06 +0000)]
scm: mercurial: fix Ruby 1.9 "hg diff" test fails (#7518).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4859 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: in repository tree, use find_changeset_by_name instead of changesets.find_by_rev...
Toshi MARUYAMA [Wed, 16 Feb 2011 15:43:36 +0000 (15:43 +0000)]
scm: in repository tree, use find_changeset_by_name instead of changesets.find_by_revision (#3724, #3421).

Mercurial revision numbers are far too brittle.
Please see #6681 description.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4858 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add identifier to entry.lastrev (#3724, #3421).
Toshi MARUYAMA [Wed, 16 Feb 2011 15:43:15 +0000 (15:43 +0000)]
scm: mercurial: add identifier to entry.lastrev (#3724, #3421).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4857 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: rewrite MercurialAdapter#entries to show per-file change log and...
Toshi MARUYAMA [Wed, 16 Feb 2011 13:35:52 +0000 (13:35 +0000)]
scm: mercurial: rewrite MercurialAdapter#entries to show per-file change log and size (#3421, #4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4856 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: set instance value flag of whether "hg diff -c" supports true at...
Toshi MARUYAMA [Wed, 16 Feb 2011 11:18:18 +0000 (11:18 +0000)]
scm: mercurial: set instance value flag of whether "hg diff -c" supports true at tests (#7518).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4855 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: rewrite MercurialAdapter#diff by using helper extension (#4455, ...
Toshi MARUYAMA [Wed, 16 Feb 2011 11:17:58 +0000 (11:17 +0000)]
scm: mercurial: rewrite MercurialAdapter#diff by using helper extension (#4455, #7518).

fix incompatibility of diff with Mercurial < 1.1.

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4854 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add instance value flag of whether "hg diff -c" supports at tests...
Toshi MARUYAMA [Wed, 16 Feb 2011 11:17:37 +0000 (11:17 +0000)]
scm: mercurial: add instance value flag of whether "hg diff -c" supports at tests (#7518).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4853 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: code clean up unit app test.
Toshi MARUYAMA [Wed, 16 Feb 2011 11:17:15 +0000 (11:17 +0000)]
scm: mercurial: code clean up unit app test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4852 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: implement find_changeset_by_name (#7047).
Toshi MARUYAMA [Wed, 16 Feb 2011 11:16:53 +0000 (11:16 +0000)]
scm: git: implement find_changeset_by_name (#7047).

SQL "like" is slow.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4851 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: change project id of unit app test from 1 to 3.
Toshi MARUYAMA [Wed, 16 Feb 2011 11:16:29 +0000 (11:16 +0000)]
scm: git: change project id of unit app test from 1 to 3.

Project id 1 has Subversion fixtures.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4850 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: refactor Repository::Mercurial#fetch_changesets (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 07:32:35 +0000 (07:32 +0000)]
scm: mercurial: refactor Repository::Mercurial#fetch_changesets (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4849 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: rewrite MercurialAdapter#revisions as an iterator (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 07:32:13 +0000 (07:32 +0000)]
scm: mercurial: rewrite MercurialAdapter#revisions as an iterator (#4455).

Now it uses XmlMini.parse() in place of slow REXML.

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4848 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: change identifier to revision in fetching revisions.
Toshi MARUYAMA [Wed, 16 Feb 2011 07:31:52 +0000 (07:31 +0000)]
scm: mercurial: change identifier to revision in fetching revisions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4847 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: rewrite MercurialAdapter#info by using helper extention (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 04:41:30 +0000 (04:41 +0000)]
scm: mercurial: rewrite MercurialAdapter#info by using helper extention (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4846 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add "summary" method in adapter (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 04:41:10 +0000 (04:41 +0000)]
scm: mercurial: add "summary" method in adapter (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4845 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: switch root_url or url in "hg" method (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 04:40:42 +0000 (04:40 +0000)]
scm: mercurial: switch root_url or url in "hg" method (#4455).

"info" sets root_url from url.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4844 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add compatible test for "revisions" method.
Toshi MARUYAMA [Wed, 16 Feb 2011 03:47:27 +0000 (03:47 +0000)]
scm: mercurial: add compatible test for "revisions" method.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4843 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: refactor "cat" by using hg helper method (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 03:47:05 +0000 (03:47 +0000)]
scm: mercurial: refactor "cat" by using hg helper method (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4842 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: refactor "annotate" by using hg helper method (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 01:14:54 +0000 (01:14 +0000)]
scm: mercurial: refactor "annotate" by using hg helper method (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4841 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add "hgtarget" method (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 01:14:34 +0000 (01:14 +0000)]
scm: mercurial: add "hgtarget" method (#4455).

Abstract adapter shell quotes paths.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4840 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: change "--cwd" option to "-R" for running "hg" (#4455).
Toshi MARUYAMA [Wed, 16 Feb 2011 01:14:10 +0000 (01:14 +0000)]
scm: mercurial: change "--cwd" option to "-R" for running "hg" (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4839 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add compatible test for "info" method.
Toshi MARUYAMA [Wed, 16 Feb 2011 01:13:49 +0000 (01:13 +0000)]
scm: mercurial: add compatible test for "info" method.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4838 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: ignore redminehelper.pyc and redminehelper.pyo for Subversion (#4455).
Toshi MARUYAMA [Tue, 15 Feb 2011 11:10:46 +0000 (11:10 +0000)]
scm: mercurial: ignore redminehelper.pyc and redminehelper.pyo for Subversion (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4837 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: bazaar: move cat and annotate test from unit app test to unit lib test.
Toshi MARUYAMA [Tue, 15 Feb 2011 11:05:33 +0000 (11:05 +0000)]
scm: bazaar: move cat and annotate test from unit app test to unit lib test.

Bazaar supports revision number and do not need to read database.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4836 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: cvs: set client available if cvs version above 1.12.
Toshi MARUYAMA [Tue, 15 Feb 2011 11:05:13 +0000 (11:05 +0000)]
scm: cvs: set client available if cvs version above 1.12.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4835 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: ignore redminehelper.pyc and redminehelper.pyo for Git and Mercurial...
Toshi MARUYAMA [Tue, 15 Feb 2011 11:04:52 +0000 (11:04 +0000)]
scm: mercurial: ignore redminehelper.pyc and redminehelper.pyo for Git and Mercurial (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4834 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add Mercurial helper extension (#4455).
Toshi MARUYAMA [Tue, 15 Feb 2011 11:04:30 +0000 (11:04 +0000)]
scm: mercurial: add Mercurial helper extension (#4455).

* 'rhsummary' and 'rhmanifest' for reducing the number of hg command calls.
* 'rhdiff' for compatibility with Mercurial < 1.1.

Also renamed TEMPLATES_DIR to HELPERS_DIR because the directory now contains
templates and a helper extension.

Original version was written by Alessio Franceschelli,
downloaded from http://www.redmine.org/attachments/3395/overhaul.py

Contributed by Alessio Franceschelli and Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4833 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: cvs: add methods of getting cvs version and add unit lib test (#4273).
Toshi MARUYAMA [Tue, 15 Feb 2011 08:04:11 +0000 (08:04 +0000)]
scm: cvs: add methods of getting cvs version and add unit lib test (#4273).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4832 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: bazaar: add methods of getting bazaar version and add unit lib test (#4273).
Toshi MARUYAMA [Tue, 15 Feb 2011 07:04:49 +0000 (07:04 +0000)]
scm: bazaar: add methods of getting bazaar version and add unit lib test (#4273).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4831 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: add new method 'hg' to wrap shellout (#4455).
Toshi MARUYAMA [Tue, 15 Feb 2011 07:04:29 +0000 (07:04 +0000)]
scm: mercurial: add new method 'hg' to wrap shellout (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4830 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: git: add methods of getting git version and add unit lib test (#4273).
Toshi MARUYAMA [Tue, 15 Feb 2011 05:58:31 +0000 (05:58 +0000)]
scm: git: add methods of getting git version and add unit lib test (#4273).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4829 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: mercurial: switch shell quote revision with argument.
Toshi MARUYAMA [Tue, 15 Feb 2011 05:58:11 +0000 (05:58 +0000)]
scm: mercurial: switch shell quote revision with argument.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4828 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: subversion: change newlines LF to CRLF at lib/redmine/scm/adapters/subversion_ad...
Toshi MARUYAMA [Tue, 15 Feb 2011 05:33:25 +0000 (05:33 +0000)]
scm: subversion: change newlines LF to CRLF at lib/redmine/scm/adapters/subversion_adapter.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4827 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: subversion: change unit app test project id from 1 to 3.
Toshi MARUYAMA [Tue, 15 Feb 2011 02:29:47 +0000 (02:29 +0000)]
scm: subversion: change unit app test project id from 1 to 3.

Fixtures have project id 1 subversion changesets and changes.

Change file:/// to file://.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4826 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: subversion: refactor getting svn version and add lib test (#4273).
Toshi MARUYAMA [Tue, 15 Feb 2011 02:12:39 +0000 (02:12 +0000)]
scm: subversion: refactor getting svn version and add lib test (#4273).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4825 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 years agoscm: catch CommandFailed during bulk Repository.fetch_changesets (#4455).
Toshi MARUYAMA [Tue, 15 Feb 2011 02:12:19 +0000 (02:12 +0000)]
scm: catch CommandFailed during bulk Repository.fetch_changesets (#4455).

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4824 e93f8b46-1217-0410-a6f0-8f06a7374b81