Eric Davis
3df729e47d
Replace puts and !!! messages with pending tests when the test SCMs are missing
2011-12-27 18:23:14 -08:00
Holger Just
91070236db
Set source encoding to UTF-8
2011-10-29 14:48:03 +02:00
Eric Davis
4b3bd797b0
Fix errors when trying to check for binary SCM strings in 1.9.2
...
1.9.2 removed String#is_binary_data?
2011-07-22 14:35:01 -07:00
Holger Just
07185fb169
[ #436 ] Remove trailing whitespace
2011-05-30 20:52:25 +02:00
Eric Davis
99507a0391
[ #197 ] Upgrade the copyright in the code files
2011-05-29 13:11:52 -07:00
Toshi MARUYAMA
80b7a1e432
scm: filesystem: update test repository for non ascii text files displaying ( #6256 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5203 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 16:11:44 -07:00
Toshi MARUYAMA
b06f24e932
scm: filesystem: code clean up unit adapter test.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5191 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 16:11:43 -07:00
Jean-Philippe Lang
07e2c652d5
Fixes subversion tests not running on win32.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5175 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 16:11:41 -07:00
Toshi MARUYAMA
2de5ef5aa2
scm: git: strict Ruby 1.9 string test in unit adapter test.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5164 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:43:07 -07:00
Toshi MARUYAMA
66d6ef870a
scm: mercurial: add test of non ASCII named branch in unit adapter test ( #7246 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:38:56 -07:00
Toshi MARUYAMA
0617c4bb4e
scm: mercurial: add test of non ASCII tag in unit adapter test ( #1981 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5114 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:38:56 -07:00
Toshi MARUYAMA
dec106c973
scm: mercurial: prepare test of wrapping revision of cat and annotate with URL encoding ( #1981 , #7246 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5113 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:38:56 -07:00
Toshi MARUYAMA
df5bb0b7c1
scm: mercurial: remove unused parameters from "nodes_in_branch()" method in adapter ( #7246 , #4455 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5108 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:38:56 -07:00
Toshi MARUYAMA
43868845ce
scm: mercurial: add tests for "nodes_in_branch()" method in adapter ( #7246 , #4455 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5103 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:38:56 -07:00
Toshi MARUYAMA
539ca7bde5
scm: cvs: fix age column on repository view is off by timezone delta ( #7827 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5088 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:38:55 -07:00
Toshi MARUYAMA
af5fb55f7c
scm: git: unit adapter latin-1 path encoding test passes on Japanese Windows ( #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
2011-04-16 15:36:08 -07:00
Toshi MARUYAMA
e158348f89
scm: git: add reverse log test in unit adapter test ( #5357 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5067 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:36:08 -07:00
Toshi MARUYAMA
fcfb5897f8
scm: git: add latin-1 encoding directory test in unit adapter test ( #5251 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5062 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:17 -07:00
Toshi MARUYAMA
2ebb117044
scm: git: add latin-1 encoding directory to test repository ( #5251 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:17 -07:00
Toshi MARUYAMA
f2fa1d4920
scm: mercurial: add latin-1 encoding directory to test repository ( #2664 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5059 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:17 -07:00
Toshi MARUYAMA
18decee672
scm: git: add tests for path encoding entries() in unit adapter test ( #5251 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5050 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:17 -07:00
Toshi MARUYAMA
41b88089a9
scm: git: add tests for branch entries() in unit adapter test.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5048 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:16 -07:00
Toshi MARUYAMA
f87f51e8e8
scm: git: add tests for tag entries() in unit adapter test.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5047 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:16 -07:00
Toshi MARUYAMA
c7646da94f
scm: git: add tags test in unit adapter test.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5045 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:16 -07:00
Toshi MARUYAMA
2ff3b15854
scm: git: add tests for path encoding cat, diff and blame in unit adapter test ( #5251 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5044 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:35:16 -07:00
Toshi MARUYAMA
38bfb7dae9
scm: git: update test repository for path encoding ( #5251 ).
...
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
2011-04-16 15:35:15 -07:00
Toshi MARUYAMA
32fa37f49a
scm: git: backout r5026 ( #5251 ).
...
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
2011-04-16 15:34:43 -07:00
Toshi MARUYAMA
a24be0ee87
scm: git: update test repository for path encoding ( #5251 ).
...
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
2011-04-16 15:34:43 -07:00
Toshi MARUYAMA
13d13c426d
scm: mercurial: add unit adapter test repository for path contains space ( #2664 , #4455 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4998 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:25:34 -07:00
Toshi MARUYAMA
3fadaf3c85
scm: mercurial: update test repository for path contains space ( #2664 , #4455 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4997 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:25:34 -07:00
Toshi MARUYAMA
fe4159fc99
scm: mercurial: update test repository for path encoding ( #2664 ).
...
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
2011-04-16 15:25:34 -07:00
Toshi MARUYAMA
515e89dd40
scm: git: use --encoding=UTF-8 in "git log" ( #3396 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 15:16:24 -07:00
Toshi MARUYAMA
34832d8731
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
2011-04-16 14:58:09 -07:00
Toshi MARUYAMA
e334d3dba9
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
2011-04-16 14:35:26 -07:00
Toshi MARUYAMA
c60a9ee5c4
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
2011-04-16 14:35:26 -07:00
Toshi MARUYAMA
05c0c88840
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
513a217330
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
229c237e7e
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
e37fcfece1
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
2fe248917c
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
9d9c0716f2
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
29f9fbd2ee
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
6840897f38
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
2011-04-16 14:35:25 -07:00
Toshi MARUYAMA
33f1436eb2
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-04-16 14:35:24 -07:00
Toshi MARUYAMA
608025fd04
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-04-16 14:35:24 -07:00
Toshi MARUYAMA
f777cc1ee8
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
2011-04-16 14:35:24 -07:00
Toshi MARUYAMA
60f165a9fc
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
2011-04-16 14:35:24 -07:00
Toshi MARUYAMA
29f99eee07
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
2011-04-16 14:35:24 -07:00
Toshi MARUYAMA
aa4b38025a
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-04-16 14:35:24 -07:00
Toshi MARUYAMA
34e013c187
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-04-16 14:35:24 -07:00