summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/scm
Commit message (Collapse)AuthorAgeFilesLines
...
* scm: git: unit adapter latin-1 path encoding test passes on Japanese Windows ↵Toshi MARUYAMA2011-03-091-5/+12
| | | | | | | | | | (#5251). Ruby uses ANSI api to fork a process on Windows. Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem and these are incompatible with ASCII. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5071 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add reverse log test in unit adapter test (#5357).Toshi MARUYAMA2011-03-081-1/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5067 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add latin-1 encoding directory test in unit adapter test (#5251).Toshi MARUYAMA2011-03-081-1/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add latin-1 encoding directory to test repository (#5251).Toshi MARUYAMA2011-03-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add latin-1 encoding directory to test repository (#2664).Toshi MARUYAMA2011-03-081-4/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5059 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add tests for path encoding entries() in unit adapter test (#5251).Toshi MARUYAMA2011-03-081-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5050 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add tests for branch entries() in unit adapter test.Toshi MARUYAMA2011-03-081-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5048 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add tests for tag entries() in unit adapter test.Toshi MARUYAMA2011-03-081-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5047 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add tags test in unit adapter test.Toshi MARUYAMA2011-03-081-0/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5045 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add tests for path encoding cat, diff and blame in unit adapter ↵Toshi MARUYAMA2011-03-081-1/+29
| | | | | | test (#5251). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5044 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: update test repository for path encoding (#5251).Toshi MARUYAMA2011-03-071-2/+7
| | | | | | | | | | | | | Mercurial and Git treats file names as byte string. This git test repository contains Latin-1 encoding path. Be careful on non Latin-1(CP1252) Windows. Please see r4996 comment. I removed a revision including "copied file" from r5026 test repository. Mercurial supports "copy", but Git does not support. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5033 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: backout r5026 (#5251).Toshi MARUYAMA2011-03-071-3/+2
| | | | | | | | In case git repository contains latin-1 path, although Redmine uses "git log -C core.quotepath=false --encoding=UTF-8", log encoding is latin-1. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5027 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: update test repository for path encoding (#5251).Toshi MARUYAMA2011-03-071-2/+3
| | | | | | | | | | Mercurial and Git treats file names as byte string. This git test repository contains Latin-1 encoding path. Be careful on non Latin-1(CP1252) Windows. Please see r4996 comment. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5026 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add unit adapter test repository for path contains space ↵Toshi MARUYAMA2011-03-041-0/+12
| | | | | | (#2664, #4455). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4998 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: update test repository for path contains space (#2664, #4455).Toshi MARUYAMA2011-03-041-9/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4997 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: update test repository for path encoding (#2664).Toshi MARUYAMA2011-03-041-10/+27
| | | | | | | | | | | | | | | | | | | Mercurial (and also Git) treats file names as byte string. This mercurial test repository contains Latin-1 encoding path. Be careful on non Latin-1(CP1252) Windows. If your Windows is not Latin-1 Windows, in order to checkout(update) Latin-1 path, You need to use cygwin 1.7 and set LANG=en_US.ISO-8859-1. Please refer. http://mercurial.selenic.com/wiki/EncodingStrategy?action=recall&rev=6 Redmine mercurial adapter do not need to checkout(update) repository. Mercurial does not have "bare" repository such as Git. You can use "hg update null" for equivalent "bare" repository. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use --encoding=UTF-8 in "git log" (#3396).Toshi MARUYAMA2011-02-281-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4964 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: Ruby 1.9 compatibility of adapter test (#3396).Toshi MARUYAMA2011-02-221-1/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4918 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: unit test for named branches at adapter (#7246).Toshi MARUYAMA2011-02-181-0/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4875 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: unit test for tags at adapter (#1981).Toshi MARUYAMA2011-02-181-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4873 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: entries unit lib test for named branch (#7246).Toshi MARUYAMA2011-02-181-0/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4867 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: entries unit lib test for tag (#1981).Toshi MARUYAMA2011-02-181-0/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4866 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: remove "TODO" comment and fix indent of unit lib test.Toshi MARUYAMA2011-02-181-2/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4865 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: unit lib test for entries (#3421).Toshi MARUYAMA2011-02-181-3/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4864 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: move entries unit test from app to lib.Toshi MARUYAMA2011-02-181-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4863 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: fix unit lib test_info test fails on Windows.Toshi MARUYAMA2011-02-181-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4862 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: set instance value flag of whether "hg diff -c" supports ↵Toshi MARUYAMA2011-02-161-1/+1
| | | | | | true at tests (#7518). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add instance value flag of whether "hg diff -c" supports at ↵Toshi MARUYAMA2011-02-161-2/+3
| | | | | | tests (#7518). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4853 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: change identifier to revision in fetching revisions.Toshi MARUYAMA2011-02-161-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: rewrite MercurialAdapter#info by using helper extention (#4455).Toshi MARUYAMA2011-02-161-1/+1
| | | | | | Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add compatible test for "revisions" method.Toshi MARUYAMA2011-02-161-0/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4843 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add compatible test for "info" method.Toshi MARUYAMA2011-02-161-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4838 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: move cat and annotate test from unit app test to unit lib test.Toshi MARUYAMA2011-02-151-0/+13
| | | | | | 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
* scm: mercurial: add Mercurial helper extension (#4455).Toshi MARUYAMA2011-02-151-2/+2
| | | | | | | | | | | | | | | * '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
* scm: cvs: add methods of getting cvs version and add unit lib test (#4273).Toshi MARUYAMA2011-02-151-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4832 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: add methods of getting bazaar version and add unit lib test ↵Toshi MARUYAMA2011-02-151-1/+17
| | | | | | (#4273). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4831 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add methods of getting git version and add unit lib test (#4273).Toshi MARUYAMA2011-02-151-0/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4829 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: subversion: refactor getting svn version and add lib test (#4273).Toshi MARUYAMA2011-02-151-0/+20
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4825 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: fix typo and mistakes.Toshi MARUYAMA2011-02-111-2/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4810 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix typo of unit lib test.Toshi MARUYAMA2011-02-111-1/+1
| | | | | | | This file includes UTF-8 "literal". We need to consider Ruby 1.9 compatibility. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4809 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: cvs: fix unit lib test fails on Windows.Toshi MARUYAMA2011-02-111-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4808 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: prepare version string unit lib test.Toshi MARUYAMA2011-02-111-0/+26
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4807 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: prepare version string unit lib test and git log encoding (#3396).Toshi MARUYAMA2011-02-111-61/+82
| | | | | | | This file includes UTF-8 literal. We need to consider Ruby 1.9 compatibity. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4805 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: subversion: prepare version string unit lib test.Toshi MARUYAMA2011-02-101-8/+20
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4803 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: cvs: use localtime at cvs rlog -d option (#996, #3761).Toshi MARUYAMA2011-02-021-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4794 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: cvs: add unit lib test.Toshi MARUYAMA2011-02-021-0/+33
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4793 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add unit lib test for the previous changeset isn't the ↵Toshi MARUYAMA2011-02-021-0/+11
| | | | | | parent (#7253, #7518). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4792 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: darcs: add compatible test of Darcs 2.3 and 2.4 (#7415).Toshi MARUYAMA2011-01-231-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4748 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: darcs: change io.gets to io.read and add darcs version unit (#4494, #5404).Toshi MARUYAMA2011-01-221-0/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4743 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: darcs: add unit lib test.Toshi MARUYAMA2011-01-221-0/+25
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4742 e93f8b46-1217-0410-a6f0-8f06a7374b81