Toshi MARUYAMA
c6e1d4f39d
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
2011-02-18 14:49:31 +00:00
Toshi MARUYAMA
96f82be2f4
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
2011-02-18 14:49:09 +00:00
Toshi MARUYAMA
190d288381
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
2011-02-18 12:44:43 +00:00
Toshi MARUYAMA
68fe853477
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
2011-02-18 07:15:37 +00:00
Toshi MARUYAMA
25d642e0ea
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
2011-02-18 07:14:51 +00:00
Toshi MARUYAMA
bd9a3a720c
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
2011-02-18 00:57:43 +00:00
Toshi MARUYAMA
7a3d385b8e
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
2011-02-16 16:06:24 +00:00
Toshi MARUYAMA
0185d23c54
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
2011-02-16 15:43:15 +00:00
Toshi MARUYAMA
1f836a1d43
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
2011-02-16 13:35:52 +00:00
Toshi MARUYAMA
4b1e16e13b
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
2011-02-16 11:17:58 +00:00
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
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
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
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
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
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
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
Toshi MARUYAMA
2e1bcb2abf
Changing revision label and identifier at SCM adapter level ( #3724 , #6092 )
...
Contributed by Yuya Nishihara.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4613 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-02 09:45:05 +00:00
Jean-Philippe Lang
9748567452
ruby1.9 compatibility
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4601 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-01 11:13:33 +00:00
Jean-Philippe Lang
0025a66200
Fixed: cvs diff broken by r4539 ( #7176 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4577 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-29 17:46:47 +00:00