summaryrefslogtreecommitdiffstats
path: root/app/models/repository
Commit message (Collapse)AuthorAgeFilesLines
* Do not parse the entire git log to fetch new commits (takes several minutes ↵Jean-Philippe Lang2010-02-071-9/+12
| | | | | | for a few thousands commits), but only 1 week before the last known commit (#4547, #4716). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3394 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: Extract method to create a Change from a Changeset.Eric Davis2010-02-023-15/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3360 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Retrieve root_url if needed (#4377).Jean-Philippe Lang2009-12-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3158 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ignore subversion root_url case when extracting relative url.Jean-Philippe Lang2009-12-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3138 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Subversion#latest_changesets ignores revision argument (#4360).Jean-Philippe Lang2009-12-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3134 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SCM:Jean-Philippe Lang2009-08-172-12/+2
| | | | | | | * Fixes file log for non-Git repositories (Repository#latest_changesets ignores path argument) * No longer used Repository#changesets_for_path method removed git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2844 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added branch and tag support to the git repository viewer. (#1406)Eric Davis2009-08-151-33/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many thanks to Adam Soltys and everyone else who tested this patch. * Updated git test repository so it has a branch with some differences from the master branch * Moved redmine diff class into a module so as not to clash with diff-lcs gem which is required by grit * Find changesets from all branches, not just master * Got revision browsing working * Got file actions working properly * Allow browsing by short form of commit identifier * Added a method to retrieve repository branches * Allow browsing by branch names as well as commit numbers * Handle the case where a git repository has no master branch * Expand revision box and handle finding revisions by first 8 characters * Added branches dropdown to repository show page * Combined repository browse and show into a single action. Moved branch/revision navigation into a partial. * Renamed partial navigation -> breadcrumbs * Made it so latest revisions list uses branch and path context * Preserve current path when changing branch or revision * Perform slightly more graceful error handling in the case of invalid repository URLs * Allow branch names to contain periods * Allow dashes in branch names * Sort branches by name * Adding tags dropdown * Need to disable both branches and tags dropdowns before submitting revision form * Support underscores in revision (branch/tag) names * Making file history sensitive to current branch/tag/revision, adding common navigation to changes page * Updated translation files to include labels for 'branch', 'tag', and 'view all revisions' * Reenable fields after submit so they don't look disabled and don't stay disabled on browser back button * Instead of dashes just use empty string for default dropdown value * Individual entry views now sport the upgraded revision navigation * Don't display dropdowns with no entries * Consider all revisions when doing initial load * Fixed bug grabbing changesets. Thanks to Bernhard Furtmueller for catching. * Always check the entire log to find new revisions, rather than trying to go forward from the latest known one * Added some cleverness to avoid selecting the whole changesets table any time someone views the repository root * File copies and renames being detected properly * Return gracefully if no revisions are found in the git log * Applied patch from Babar Le Lapin to improve Windows compatibility git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2840 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Accept any svn tunnel scheme in repository URL (#3278).Jean-Philippe Lang2009-05-101-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2723 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Transaction for each imported subversion changeset.Jean-Philippe Lang2009-03-071-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting to limit the number of revisions displayed on a repository ↵Jean-Philippe Lang2009-02-012-4/+5
| | | | | | file log (default=100). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2350 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes Darcs#cat with Postgresql.Jean-Philippe Lang2008-12-061-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2095 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Eager-load users.Jean-Philippe Lang2008-11-112-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2009 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Check that git changeset is not in the database before creating it (#1419).Jean-Philippe Lang2008-10-251-14/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1953 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes error with CVS+Postgresql and non-UTF8 commit logs (#917, #1659).Jean-Philippe Lang2008-08-261-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1768 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds support for file viewing with Darcs 2.0+ (patch #1799 by Ralph Lange ↵Jean-Philippe Lang2008-08-251-0/+10
| | | | | | slightly edited). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1759 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reduces memory usage when importing large git repositories (#1482).Jean-Philippe Lang2008-06-291-4/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1599 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: view file at given revision with CVS.Jean-Philippe Lang2008-06-151-3/+8
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* File size display with Bazaar repositories (#1149).Jean-Philippe Lang2008-06-141-0/+5
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1537 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: unexpected nil when viewing differences on CVS (#1444).Jean-Philippe Lang2008-06-141-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1525 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move unified diff parser out of the scm abstract adapter so it can be reused ↵Jean-Philippe Lang2008-06-082-4/+4
| | | | | | for viewing attached diffs (#1403). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1513 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Filesystem adapter (patch #1393 by Paul R).Jean-Philippe Lang2008-06-081-0/+43
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: View differences for individual file of a changeset fails if the ↵Jean-Philippe Lang2008-05-241-0/+15
| | | | | | subversion repository URL doesn't point to the repository root (#1209, #1262, #1275). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1446 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CVS duplicate key violation fix (#996, #1098).Jean-Philippe Lang2008-04-241-4/+10
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1355 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
* Fix repository browsing at given revision for various scm and add tests for ↵Jean-Philippe Lang2008-04-062-2/+4
| | | | | | this. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1329 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
* Merged Git support branch (r1200 to r1226).Jean-Philippe Lang2008-03-125-28/+95
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1236 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added Bazaar adapter.Jean-Philippe Lang2007-12-031-0/+86
| | | | | | Fixed 'quick jump to a revision' form on the revisions list. git-svn-id: http://redmine.rubyforge.org/svn/trunk@950 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: log is not displayed when browsing a copy in a svn repository.Jean-Philippe Lang2007-10-151-0/+5
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@843 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Subversion repository now accepts svn+ssh url.Jean-Philippe Lang2007-09-221-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@751 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed a bug in CVS model (clash when 2 projects point to the same repository)Jean-Philippe Lang2007-08-011-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@595 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added Darcs basic support.Jean-Philippe Lang2007-06-241-0/+90
| | | | | | Files in the repository can not be viewed or downloaded since Darcs doesn't support cat-like command. git-svn-id: http://redmine.rubyforge.org/svn/trunk@573 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added basic support for CVS and Mercurial SCMs.Jean-Philippe Lang2007-06-123-0/+300
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