summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/abstract_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Prevent undefined method `<=>' for nil:NilClass in AbstractAdapter (#4098).Jean-Philippe Lang2009-10-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2957 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added branch and tag support to the git repository viewer. (#1406)Eric Davis2009-08-151-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Capture scm CLI stderr to log/scm.stderr.log when running in dev environmentJean-Philippe Lang2008-12-121-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2128 e93f8b46-1217-0410-a6f0-8f06a7374b81
* More detailed error message in log when scm command fails (#1682).Jean-Philippe Lang2008-08-251-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1757 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes method name in AbstractAdapter.Jean-Philippe Lang2008-08-251-2/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1756 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes platform determination under JRuby (#1804).Jean-Philippe Lang2008-08-251-2/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1753 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes nil error when svn binary version is unknown (#1607).Jean-Philippe Lang2008-07-121-4/+13
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1652 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display svn properties in the browser, svn >= 1.5.0 only (#1581).Jean-Philippe Lang2008-07-051-1/+27
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1627 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move unified diff parser out of the scm abstract adapter so it can be reused ↵Jean-Philippe Lang2008-06-081-160/+1
| | | | | | 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/+10
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial adapter improvements (patch #1199 by Pierre Paysant-Le Roux).Jean-Philippe Lang2008-06-071-1/+6
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1499 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: SVN errors lead to svn username/password being displayed to end users ↵Jean-Philippe Lang2008-06-061-3/+14
| | | | | | (#1368). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: new line at the end of a file is not displayed in diff.Jean-Philippe Lang2008-06-021-1/+0
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1487 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Links to repository directories don't work (#1119).Jean-Philippe Lang2008-04-271-2/+11
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1365 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SCM AbstractAdapter use shell_quote to more properly escape path (closes ↵Jean-Philippe Lang2008-03-121-3/+3
| | | | | | #838 by John Goerzen). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show explicit error message when the scm command failed (eg. when svn binary ↵Jean-Philippe Lang2008-01-231-1/+1
| | | | | | is not available). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1094 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: undefined local variable or method 'log' in CvsAdapter when a cvs ↵Jean-Philippe Lang2008-01-031-1/+1
| | | | | | command fails. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1034 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ignore empty diffs.Jean-Philippe Lang2007-12-191-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1014 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SCM adapters: moved Errno::ENOENT exception rescuing to the abstract adapter.Jean-Philippe Lang2007-12-151-3/+9
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1001 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added Annotate/Blame view for Subversion, CVS and Mercurial repositories.Jean-Philippe Lang2007-12-021-3/+29
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Quote subversion username and password in svn commands.Jean-Philippe Lang2007-10-191-0/+8
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@852 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added syntax highlightment for repository files (using CodeRay).Jean-Philippe Lang2007-08-151-1/+1
| | | | | | Supported languages: c, ruby, rhtml, yaml, html, xml. git-svn-id: http://redmine.rubyforge.org/svn/trunk@644 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added Darcs basic support.Jean-Philippe Lang2007-06-241-2/+6
| | | | | | 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-121-0/+341
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