Mercurial > hg > soundsoftware-site
comparison app/models/repository/filesystem.rb @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | 051f544170fe |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 # redMine - project management software | |
2 # Copyright (C) 2006-2007 Jean-Philippe Lang | |
3 # | |
4 # FileSystem adapter | |
5 # File written by Paul Rivier, at Demotera. | |
6 # | |
7 # This program is free software; you can redistribute it and/or | |
8 # modify it under the terms of the GNU General Public License | |
9 # as published by the Free Software Foundation; either version 2 | |
10 # of the License, or (at your option) any later version. | |
11 # | |
12 # This program is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU General Public License for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with this program; if not, write to the Free Software | |
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | |
21 require 'redmine/scm/adapters/filesystem_adapter' | |
22 | |
23 class Repository::Filesystem < Repository | |
24 attr_protected :root_url | |
25 validates_presence_of :url | |
26 | |
27 def scm_adapter | |
28 Redmine::Scm::Adapters::FilesystemAdapter | |
29 end | |
30 | |
31 def self.scm_name | |
32 'Filesystem' | |
33 end | |
34 | |
35 def entries(path=nil, identifier=nil) | |
36 scm.entries(path, identifier) | |
37 end | |
38 | |
39 def fetch_changesets | |
40 nil | |
41 end | |
42 | |
43 end |