Commit Graph

664 Commits

Author SHA1 Message Date
Toshi MARUYAMA 8acdda9816 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
2011-02-16 07:32:13 +00:00
Toshi MARUYAMA 08ed9cb5d5 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
2011-02-16 07:31:52 +00:00
Toshi MARUYAMA 4fe8259017 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
2011-02-16 04:41:30 +00:00
Toshi MARUYAMA ef3fbeeaa0 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
2011-02-16 04:41:10 +00:00
Toshi MARUYAMA 2c4836cbae 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
2011-02-16 04:40:42 +00:00
Toshi MARUYAMA 109afa7881 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
2011-02-16 03:47:05 +00:00
Toshi MARUYAMA 82c6d84de8 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
2011-02-16 01:14:54 +00:00
Toshi MARUYAMA ee8ae3c09b 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
2011-02-16 01:14:34 +00:00
Toshi MARUYAMA f66b53577f 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
2011-02-16 01:14:10 +00:00
Toshi MARUYAMA 0d5d93343e 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
2011-02-15 11:05:13 +00:00
Toshi MARUYAMA 2547e57168 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
2011-02-15 11:04:30 +00:00
Toshi MARUYAMA 2afc8e8c95 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
2011-02-15 08:04:11 +00:00
Toshi MARUYAMA 50bbb97848 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
2011-02-15 07:04:49 +00:00
Toshi MARUYAMA a9429df880 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
2011-02-15 07:04:29 +00:00
Toshi MARUYAMA 4f1b1d9242 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
2011-02-15 05:58:31 +00:00
Toshi MARUYAMA e3b3152a5d 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
2011-02-15 05:58:11 +00:00
Toshi MARUYAMA 05f260da65 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
2011-02-15 05:33:25 +00:00
Toshi MARUYAMA 41f190e8ed 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
2011-02-15 02:12:39 +00:00
Toshi MARUYAMA 9c1db1e545 scm: git: remove localtime (#6346).
No needs to use localtime.
If we use localtime, we should clone.

See r4794 and r4802.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4823 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-14 08:45:54 +00:00
Toshi MARUYAMA 8b98c05879 scm: use shell quote for scm command at adapter level (#7517, #4273).
"C:\Program Files\TortoiseHg\hg.exe" can be used in config/configuration.yml.

In Ruby 1.9 IO.popen, if cmd is an Array of String,
it will be used as the subprocess‘s argv bypassing a shell.

See http://www.ruby-doc.org/core/classes/IO.html

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4821 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-14 06:14:34 +00:00
Toshi MARUYAMA 2a11abdcfc scm: cvs: fix most binary files become corrupted on Windows (#6090).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-12 09:43:57 +00:00
Toshi MARUYAMA 6aaf5db1e6 scm: change gunzip to tar -z option for scm repository setup in lib/tasks/testing.rake.
Pipe does not work on Mingw Ruby.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4806 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-11 15:30:45 +00:00
Toshi MARUYAMA 40b953f05a scm: cvs: code clean up.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4804 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-11 15:29:56 +00:00
Toshi MARUYAMA 3ee203ef0c scm: change key name of configurable command name (#7517, #6159, #7047).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4797 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-04 10:24:10 +00:00
Toshi MARUYAMA 0ffe328c0a scm: add a feature of configurable path of executable for scm adapters (#7517).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4795 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-04 04:28:39 +00:00
Toshi MARUYAMA 10ca61a13b scm: cvs: use localtime at cvs rlog -d option (#996, #3761).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-02 13:13:44 +00:00
Jean-Philippe Lang a5e3ac2864 Update for 1.1.1 release.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4784 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-30 14:37:23 +00:00
Jean-Philippe Lang 48d3ab5f44 Reverted r4780 that broke gantt tests (#7280).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4782 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-30 09:09:50 +00:00
Jean-Philippe Lang 3c8df553ae Removed issue subjects wrapping in gantt (#7280).
Contributed by Etienne Massip.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4780 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-30 06:54:00 +00:00
Jean-Philippe Lang d39e12c202 Prevent error when Mantis version.date_order is nil (#7476).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4765 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-28 19:45:09 +00:00
Jean-Philippe Lang 4cefae0aaa Adds an application configuration file: config/configuration.yml (#7408).
Email delivery settings that were stored in config/email.yml should be moved to this new configuration file.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4752 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-23 10:22:00 +00:00
Toshi MARUYAMA e173f7e72d scm: darcs: fix Darcs adapter recognizes new files as modified files above Darcs 2.4 (#7415).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4749 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-23 04:17:26 +00:00
Toshi MARUYAMA 1df08afefd scm: darcs: switch '.' or @url at entries() in darcs version (#4899).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4744 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-22 15:38:47 +00:00
Toshi MARUYAMA 0d3703c0b3 scm: darcs: change io.gets to io.read and add darcs version unit (#4494, #5404).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4743 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-22 15:38:23 +00:00
Jean-Philippe Lang b9385dceb9 Make POP3 mail fetcher log messages instead of puts (#7177).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4737 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-22 12:09:07 +00:00
Jean-Philippe Lang 494cd8cc36 Avoid "private method `gsub' called for nil:NilClass" error when exporting issues with nil description (#7386).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-22 11:57:02 +00:00
Toshi MARUYAMA 80b329d031 scm: mercurial: change diff option from --git to --config diff.git=false (#7253).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4688 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-11 08:41:35 +00:00
Toshi MARUYAMA 331cdbed2f scm: mercurial: fix r4686 setup mercurial test repository (#7272).
If redmine top directory has .hg, "hg clone" synchronizes all revisions to test repository.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4687 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-11 08:41:11 +00:00
Toshi MARUYAMA a6f05b5e56 scm: mercurial: diff '-c' option supports above Mercurial 1.2 (#3724, #7253).
r4662 fails in old Mercurial.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4686 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-11 05:15:56 +00:00
Toshi MARUYAMA 35b9972c81 scm: mercurial: test:scm:setup:mercurial task can be simpler (#7272).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4683 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-11 04:18:08 +00:00
Jean-Philippe Lang 2cbf60851f Store the mercurial test repository as a bundle to make it compatible with older hg versions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4676 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-10 17:43:01 +00:00
Toshi MARUYAMA 1ff52e5c5a scm: mercurial: add --git option in 'hg diff' (#7253).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-09 13:53:47 +00:00
Toshi MARUYAMA 08c093bc85 scm: mercurial: replace identifier to hgrev(identifier).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4667 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-09 09:54:30 +00:00
Toshi MARUYAMA ed246cef41 scm: mercurial: wrap identifier with shell_quote at hgrev(identifier).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-09 09:54:10 +00:00
Toshi MARUYAMA ef28bf6d88 scm: mercurial: annotate accepts both of revision number and changeset id (#3724).
Change annotate revision label to Mercurial style '4:def6d2f1254a'
and use identifier.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-09 01:30:18 +00:00
Toshi MARUYAMA 5207211b6d scm: mercurial: fix diff and test for accept both of revision number and changeset id (#3724).
Diff of changeset can be wrong if the previous changeset isn't the parent.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4662 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-08 13:51:43 +00:00
Jean-Philippe Lang e6118347d3 Adds a rake task test:scm:update to update test repositories if needed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4643 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-06 18:52:37 +00:00
Toshi MARUYAMA ad18cfda32 scm: mercurial: escape any filenames by urlescape (#2664, #7064).
In Mercurial, filename is not UTF-8 but byte-string.
So it should be escaped to UTF-8-safe string before parsing as XML document.

NOTE: Mercurial's {|obfuscate} filter cannot be used here, because it treats
filename as encoded by HGENCODING.

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4633 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-05 15:02:24 +00:00
Toshi MARUYAMA 7958facadc repository: git: change io.gets to io.readlines (#5404, #5096).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-03 10:45:00 +00:00
Jean-Philippe Lang e0d6f8db1d Set version to 1.1.0.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4619 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-02 12:16:40 +00:00