summaryrefslogtreecommitdiffstats
path: root/app/models/repository
Commit message (Collapse)AuthorAgeFilesLines
* fix source indent of Repository::Cvs modelToshi MARUYAMA2014-02-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12878 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: insert long id to DB unless existing id in DB is not short ↵Toshi MARUYAMA2014-02-021-2/+8
| | | | | | id (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12777 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: switch short or long id of entry by existing value in DB ↵Toshi MARUYAMA2014-02-021-2/+15
| | | | | | (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12760 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: override entry and scm_entries (#14361)Toshi MARUYAMA2014-02-021-0/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12759 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add method to switch short or long id by existing value in ↵Toshi MARUYAMA2014-02-021-5/+17
| | | | | | DB (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: split Repository#entries (#14361)Toshi MARUYAMA2014-02-024-10/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12754 e93f8b46-1217-0410-a6f0-8f06a7374b81
* back out r12752 (#14361)Toshi MARUYAMA2014-02-011-11/+3
| | | | | | Revision, Author and Comment of repository browser are broken. git-svn-id: http://svn.redmine.org/redmine/trunk@12753 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use long id in adapter level (#14361)Toshi MARUYAMA2014-02-011-3/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12752 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: split Repository::Mercurial#latest_changesets_cond for short ↵Toshi MARUYAMA2014-02-011-2/+13
| | | | | | and long id (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12751 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use 12 chars id for format_changeset_identifier (#14361)Toshi MARUYAMA2014-02-011-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12749 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded Relation#all from Repository::Git modelToshi MARUYAMA2014-01-311-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12743 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code format clean up Repository::Git modelToshi MARUYAMA2014-01-311-5/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12742 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-297-7/+7
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded Relation#all from Repository::Subversion modelToshi MARUYAMA2014-01-271-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12730 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code format cleanup Repository::Subversion modelToshi MARUYAMA2014-01-271-4/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* backout r12562 : remove unneeded Relation#all from ↵Toshi MARUYAMA2014-01-091-1/+2
| | | | | | Repository::Mercurial#latest_changesets git-svn-id: http://svn.redmine.org/redmine/trunk@12567 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded Relation#all from Repository::Mercurial#latest_changesetsToshi MARUYAMA2014-01-091-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12562 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup of finders with :conditions option.Jean-Philippe Lang2013-06-123-35/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use %r{} instead of // at app/models/repository/subversion.rbToshi MARUYAMA2013-03-071-1/+1
| | | | | | Syntax highlight is broken in gedit 2.28.4 on CentOS 6. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11543 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-127-7/+7
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Repository changesets are already sorted by committed_on DESC (#12713).Jean-Philippe Lang2013-01-031-2/+1
| | | | | | SQLServer raises an error because committed_on is specified twice in the order by list. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11101 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use \A and \z in validation regexps.Jean-Philippe Lang2012-12-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10960 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-021-5/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix tests fail when extra_info is nil (#12409)Toshi MARUYAMA2012-11-211-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10857 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix changesets aren't read after clear_changesets call (#12409)Toshi MARUYAMA2012-11-211-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10856 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: use log encoding as path encoding (#11834)Toshi MARUYAMA2012-09-181-0/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10420 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: remove unused scm.revisions ":with_paths => true" option from ↵Toshi MARUYAMA2012-09-161-1/+1
| | | | | | fetch_changesets method git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10399 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes repository url read-only after saving.Jean-Philippe Lang2012-06-201-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9878 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Safe attributes for repositories.Jean-Philippe Lang2012-06-191-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9876 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that Subversion#load_entries_changesets raises an error if entries is nil.Jean-Philippe Lang2012-06-121-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9823 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use Rails3 ActiveRecord syntax with same as git r9807 at ↵Toshi MARUYAMA2012-06-111-4/+4
| | | | | | find_changeset_by_name git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9812 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-06-101-1/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9808 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-06-101-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9807 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Faster changesets loading for subversion.Jean-Philippe Lang2012-06-101-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9806 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a method to load changesets for repository entries.Jean-Philippe Lang2012-06-105-7/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9805 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Renamed #changes association to #filechanges (clash with AR::Base.changes ↵Jean-Philippe Lang2012-06-032-5/+5
| | | | | | that triggers errors with Rails 3.2.5). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9759 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-056-6/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: git: save parents in creating changesets (#10470)Toshi MARUYAMA2012-04-032-12/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9311 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use Changeset#create and Changeset#create_change as same with ↵Toshi MARUYAMA2012-03-291-13/+8
| | | | | | Subversion and Mercurial git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9290 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: transaction for each imported revisions (#10470)Toshi MARUYAMA2012-03-291-7/+9
| | | | | | | | Subversion transaction switched at r2563. Subversion and Mercurial have a sequential revision number. So, Mercurial can use the same logic with Subversion. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9288 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add the comment of the reason to scan database in fetching every ↵Toshi MARUYAMA2012-03-291-0/+14
| | | | | | time (#10470) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9287 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix typo in fetching revisions comment.Toshi MARUYAMA2012-03-291-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9286 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: fix model source indents (#10470)Toshi MARUYAMA2012-03-281-41/+41
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: process new git revisions all at once rather than per branch (#10470)Toshi MARUYAMA2012-03-281-35/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9283 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from app/models/repository/git.rbToshi MARUYAMA2012-03-071-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: performance improvements in fetching revisions (#8857, #9472)Toshi MARUYAMA2012-03-071-29/+61
| | | | | | | | | | | | | | | | | | Parse a revision for a given branch, just if we haven't parsed it for any branches before. Moved the db check to for existing revisions into a grouped search. Search for many revisions at once: this reduces db load. Revisions are grouped into sets of 100. This is to improve memory consumption. There will be just one query instead of each 100. The above two methods significantly increase parsing speed. Test case was a git repo with 6000+ commits on a master branch, and several other branches originating for master. Speed improved from 1.4h to 18min. Contributed by Gergely Fábián. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9144 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: reduce saving heads times in fetching revisions (#8857, #9472)Toshi MARUYAMA2012-03-071-3/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9143 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: backout r8839 (#8857)Toshi MARUYAMA2012-03-071-39/+28
| | | | | | call "git log" only once instead of per branch in fetching revisions. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: backout r8840 (#8857, #9472)Toshi MARUYAMA2012-03-071-7/+2
| | | | | | reduce saving heads times in fetching revisions. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9141 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 3.1 compatibility (order declared on association takes precedence).Jean-Philippe Lang2012-02-261-3/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9015 e93f8b46-1217-0410-a6f0-8f06a7374b81