summaryrefslogtreecommitdiffstats
path: root/app/models/repository/mercurial.rb
Commit message (Collapse)AuthorAgeFilesLines
* scm: mercurial: code clean up model.Toshi MARUYAMA2011-05-261-13/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5931 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use regexp %r{} instead of // in model latest_changesets_cond().Toshi MARUYAMA2011-05-261-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5930 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: remove trailing white-spaces from model source.Toshi MARUYAMA2011-05-121-5/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5756 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use i18n string at 'Path to repository' setting in Mercurial, Git, ↵Toshi MARUYAMA2011-04-231-4/+5
| | | | | | Bazaar and Darcs. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5529 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: change "url" human attribute name from "Root directory" to ↵Toshi MARUYAMA2011-04-231-1/+1
| | | | | | "Path to repository". git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5528 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: increase limit of branch directory latest changesets.Toshi MARUYAMA2011-03-161-1/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5146 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: set supporting directory revisions or not at scm level.Toshi MARUYAMA2011-03-161-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5144 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: branches and tags are enable in model (#1981, #7246).Toshi MARUYAMA2011-03-141-8/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5129 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: latest changesets support named branch (#7246).Toshi MARUYAMA2011-03-141-2/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5127 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: latest changesets improvement and supporting tag (#1981).Toshi MARUYAMA2011-03-141-11/+23
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5123 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add :order => 'id DESC' explicitly for MySQL test fails.Toshi MARUYAMA2011-03-111-2/+9
| | | | | | | | | | Because :order => 'id DESC' is defined at 'has_many', there is no need to set 'order'. But, MySQL test fails. Sqlite3 and PostgreSQL pass. Is this MySQL bug? git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5091 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add scm specific human_attribute_name for input validation.Toshi MARUYAMA2011-03-011-0/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4975 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: ignore log encoding setting in Subversion and Mercurial (#7597).Toshi MARUYAMA2011-02-281-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4962 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: temporary disable tags and branches at model (#1981, #7246, ↵Toshi MARUYAMA2011-02-181-0/+8
| | | | | | | | #4455). Until latest_changesets supports tags and branches. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4871 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: improvement latest_changesets without supporting tags and ↵Toshi MARUYAMA2011-02-181-4/+7
| | | | | | | | | | | named branches (#4455). Based on latest-changesets-improvements-2.diff of #6159. http://www.redmine.org/attachments/4332/latest-changesets-improvements-2.diff Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4868 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: rewrite MercurialAdapter#entries to show per-file change log ↵Toshi MARUYAMA2011-02-161-23/+0
| | | | | | | | 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
* scm: mercurial: refactor Repository::Mercurial#fetch_changesets (#4455).Toshi MARUYAMA2011-02-161-30/+18
| | | | | | Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4849 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: change identifier to revision in fetching revisions.Toshi MARUYAMA2011-02-161-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add scm command and version methods at repository models (#4273).Toshi MARUYAMA2011-02-141-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4822 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: fix error on revision page for empty revision (#7307).Toshi MARUYAMA2011-01-131-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4704 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: change two revision diff text of mercurial (#3724).Toshi MARUYAMA2011-01-111-0/+4
| | | | | | For example, "4:def6d2f1254a 2:400bb8672109". git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4699 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use revision text mercurial style "2:400bb8672109" (#3724).Toshi MARUYAMA2011-01-111-2/+1
| | | | | | Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4697 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use scmid as identifier (#3724).Toshi MARUYAMA2011-01-111-2/+13
| | | | | | Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4695 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: accept both of revision and nodeid as changeset id (#3724).Toshi MARUYAMA2011-01-081-0/+11
| | | | | | Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4654 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: repository: mercurial: sort changesets by revision (#3449, #3567).Toshi MARUYAMA2011-01-021-0/+15
| | | | | | | | | | In DVCS, changesets are not in date order. Because Mercurial backend inserts changesets from eariest, 'ORDER BY id' means 'order by revision number'. Contributed by Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4611 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: Extract method to create a Change from a Changeset.Eric Davis2010-02-021-5/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3360 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: error when browsing an empty Mercurial repository (#1046).Jean-Philippe Lang2008-04-121-1/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1343 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial: display working directory files sizes unless browsing a specific ↵Jean-Philippe Lang2008-04-061-0/+5
| | | | | | revision (#999). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial adapter:Jean-Philippe Lang2008-03-151-20/+26
| | | | | | | * fetch changesets by batches of 100 (rather than in a single transaction) * fix: fetch_changesets tries to re-insert the last revision that exists in the db (#860) git-svn-id: http://redmine.rubyforge.org/svn/trunk@1255 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added basic support for CVS and Mercurial SCMs.Jean-Philippe Lang2007-06-121-0/+81
Browsing, changesets fetching and diff viewing are implemented. Only tested with local repositories. Thanks to Ralph Vater for CVS specific code. git-svn-id: http://redmine.rubyforge.org/svn/trunk@559 e93f8b46-1217-0410-a6f0-8f06a7374b81