Toshi MARUYAMA
bc169cf466
Rails3: replace deprecated 'before_create' to declared method at Changeset model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6744 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 14:03:11 +00:00
Toshi MARUYAMA
80c5f34c07
Rails3: replace deprecated 'after_create' to declared method at Repository model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6740 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 12:42:12 +00:00
Toshi MARUYAMA
8427048d5d
scm: fix JRuby tests fail in unit changeset following test.
...
* test_invalid_utf8_sequences_in_comments_should_be_replaced_ja_jis
* test_invalid_utf8_sequences_in_comments_should_be_replaced_latin1
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-09 01:29:22 +00:00
Toshi MARUYAMA
0f245c0e56
remove trailing white-spaces from changeset model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5792 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-15 23:01:21 +00:00
Toshi MARUYAMA
bebf8247a7
scm: cvs: fix parsing revisions if author is not ASCII.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5455 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-14 15:01:55 +00:00
Toshi MARUYAMA
cae3fcce54
scm: use upcase to compare encoding name "UTF-8" in log converting.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5375 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 23:21:41 +00:00
Toshi MARUYAMA
f31df6c02f
scm: code clean up app/models/changeset.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5374 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 23:21:04 +00:00
Toshi MARUYAMA
6536c53e09
scm: replace invalid utf-8 sequences in comments instead of stripping on Ruby 1.8.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5373 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 09:31:14 +00:00
Toshi MARUYAMA
b9ce061319
scm: code clean up app/models/changeset.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5372 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 09:30:50 +00:00
Toshi MARUYAMA
c12453ec4e
scm: code clean up app/models/changeset.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5371 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 08:19:55 +00:00
Toshi MARUYAMA
1104c3900c
scm: fix log converting error in Ruby 1.9 and add more tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5370 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 08:07:22 +00:00
Toshi MARUYAMA
1b0473c38e
scm: set empty log encoding UTF-8 in Ruby 1.9 and add tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5368 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 06:34:33 +00:00
Toshi MARUYAMA
e297c1c244
scm: not use Iconv for log converting in Ruby 1.9 and fix tests fails in Ruby 1.9.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5367 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-09 05:41:12 +00:00
Jean-Philippe Lang
405fc07e90
Makes visible scopes accept projects option and deprecate Project.visible_by.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5324 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-05 12:50:19 +00:00
Jean-Philippe Lang
e27866be5b
Prevent error when referencing an issue without project ( #7890 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5157 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-16 20:52:48 +00:00
Toshi MARUYAMA
06f078a813
scm: ignore log encoding setting in Subversion and Mercurial ( #7597 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-28 12:09:32 +00:00
Toshi MARUYAMA
f03e338880
scm: return if str.blank? in to_utf8(str).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-28 08:03:43 +00:00
Jean-Philippe Lang
2d115bbe70
Fixes syntax for time logging in commit messages ( #7630 , #7718 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4951 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-26 14:46:19 +00:00
Toshi MARUYAMA
87a6d79b5b
scm: for log in Ruby 1.9, replace invalid UTF-8 to '?' instead of removing.
...
Refer r3466 #4773 .
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4926 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-22 13:39:37 +00:00
Toshi MARUYAMA
9f50e63583
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
2011-02-22 13:39:12 +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
ad727d3781
Fixes utf8 conversions with ruby1.9.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4605 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-01 19:12:35 +00:00
Jean-Philippe Lang
8407db9854
Fixes Changeset#text_tag for numeric scmid ( #6681 ).
...
Contributed by Toshi MARUYAMA.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4490 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-11 14:20:04 +00:00
Jean-Philippe Lang
d7c607fd8b
Automatic spent time logging from commit messages ( #4155 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4470 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-05 11:45:09 +00:00
Jean-Baptiste Barth
56e3953a71
Removed useless debug code. #5978
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3928 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-08-08 20:26:33 +00:00
Jean-Philippe Lang
5163904a3a
Fixed: Update of Subversion changesets broken by r3466 under Solaris ( #5255 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3635 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-04-11 13:55:30 +00:00
Jean-Philippe Lang
0341ac80eb
Avoid unnecessary SQL queries when loading changesets.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3473 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-02-21 14:43:45 +00:00
Jean-Philippe Lang
46aa855572
Remove invalid utf8 sequences from commit comments and author name ( #4773 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3466 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-02-20 11:24:41 +00:00
Eric Davis
39c585740d
Refactor: Extract method to create a Change from a Changeset.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-02-02 17:02:32 +00:00
Jean-Philippe Lang
d43c860448
Allow commits to reference issues of parent projects and subprojects ( #4674 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3357 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-01-31 16:25:06 +00:00
Eric Davis
609faba6a3
Allow referencing issue numbers in brackets. This style is used by other
...
bug trackers.
Examples:
* "[#nnn] Worked on this issue"
* "[#nnn, #mmm] Worked on these"
* "[#nnn #mmm] Working some more"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-03 01:21:11 +00:00
Eric Davis
ea7ff8dd76
Added hook, :model_changeset_scan_commit_for_issue_ids_pre_issue_update. #3279
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2773 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-30 22:34:27 +00:00
Jean-Philippe Lang
81b84f641d
Fixed: links to changesets in activity and atom feeds uses project id instead project identifier ( #3137 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-04-07 17:30:56 +00:00
Eric Davis
b4be8849c0
Added observers to watch model objects for mail delivery instead of calling Mailer.
...
* Added an IssueObserver to watch when Issues are created
* Added a JournalObserver to watch when Journals are created (Issue updates)
* Added a NewsObserver for News items.
* Added a DocumentObserver for Document notifications.
* Setup IssuesController#new to use the IssueObserver.
* Setup IssuesController#edit to use the IssueObserver.
* Setup IssuesController#bulk_edit to use the JournalObserver.
* Removed the Mailer call in Changeset#scan_commit_for_issue_ids, the
JournalObserver will handle it.
* Removed Mailer calls in MailHandler in favor of the Observers.
#2659
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2637 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-28 00:38:57 +00:00
Jean-Philippe Lang
fe28193e4e
Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-21 11:04:50 +00:00
Jean-Philippe Lang
cbdf900629
Do not repeat one-line commit logs on the activity view.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 15:48:56 +00:00
Jean-Philippe Lang
fce4615f10
Display latest user's activity on account/show view.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-11-30 11:18:22 +00:00
Jean-Philippe Lang
79c33bbc83
Maps repository users to Redmine users ( #1383 ).
...
Users with same username or email are automatically mapped. Mapping can be manually adjusted in repository settings. Multiple usernames can be mapped to the same Redmine user.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2006 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-11-10 18:59:06 +00:00
Jean-Philippe Lang
d611339baa
Fixes error with CVS+Postgresql and non-UTF8 commit logs ( #917 , #1659 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-08-26 12:28:15 +00:00
Jean-Philippe Lang
0cf15476a3
Adds support for commit logs reencoding to UTF-8 before insertion in the database ( #834 , #917 , #1663 ).
...
Source encoding of commit logs can be selected in Application settings -> Repositories.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1767 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-08-26 12:13:15 +00:00
Jean-Philippe Lang
a774c5c48b
Activity refactoring.
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1701 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-07-27 17:54:09 +00:00
Jean-Philippe Lang
e8d092e46a
Fixed: using '*' as keyword for repository referencing keywords doesn't work when issue id is at the beginning of a line ( #1253 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1451 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-05-25 11:43:20 +00:00
Jean-Philippe Lang
073818f8bc
Ability to search all projects or the projects the user belongs to ( #791 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1435 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-05-18 16:15:22 +00:00
Jean-Philippe Lang
ffbdc6b25b
Postgresql 8.3 compatibility fix ( #834 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1363 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-04-26 17:56:26 +00:00
Jean-Philippe Lang
3a9b0988c7
Merged Git support branch (r1200 to r1226).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1236 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-12 20:28:49 +00:00
Jean-Philippe Lang
624723d0ce
Activity enhancements:
...
* overall activity view and feed added, link is available on the project list (#423 , #494 )
* switch added on the project activity view to include subprojects (closes #530 )
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-11 19:33:38 +00:00
Jean-Philippe Lang
7ee55562ff
Fixed: fetch_changesets fails on commit comments that close 2 duplicates issues.
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1183 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-01 09:00:02 +00:00
Jean-Philippe Lang
c80c1e1ead
Create a journal and send an email when an issue is closed by commit ( #609 ).
...
The redmine user is found using the committer username or email. Otherwise, the journal is created with anonymous user.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1126 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-02-06 20:02:30 +00:00
Jean-Philippe Lang
db002edabd
* Added links to previous and next revisions on revision view (patch by Cyril Mougel slightly edited)
...
* Fixed TimelogController#report december error
* Fixed ProjectsControllerTest#test_activity 1st and 2nd day of the month failure
git-svn-id: http://redmine.rubyforge.org/svn/trunk@938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-12-01 17:15:42 +00:00
Jean-Philippe Lang
99f9aea80a
* Referencing issues in commit messages: enter * in 'Referencing keywords' to link any issue id without using keywords.
...
* Updated Polish translation (Mariusz Olejnik).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@918 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-11-20 12:07:28 +00:00