return d
end
+function cvs.cvs_source:has_working_copy()
+ return true
+end
+
--- Build the cvsroot string.
-- @param info Info table.
-- @param sourcename Source name.
end
function cvs.has_working_copy(info, sourcename)
- return true
+ return source.sources[sourcename]:has_working_copy()
end
function cvs.toresult(info, sourcename, sourceset, directory)
return d
end
+function files.files_source:has_working_copy()
+ return false
+end
+
--- cache files for a source
-- @param info the info structure
-- @param sourcename name of the source
end
function files.has_working_copy(info, sourcename)
- return false
+ return source.sources[sourcename]:has_working_copy()
end
--- Handle file:copy() in a way that appears intuitive to the user. Returns
return d
end
+function git.git_source:has_working_copy()
+ return true
+end
+
--- Return the git commit ID of the specified source configuration. Specific to
-- sources of type git, useful for writing plugins.
-- @param info Info table.
return true
end
-function git.has_working_copy(info, sname)
- return true
+function git.has_working_copy(info, sourcename)
+ return source.sources[sourcename]:has_working_copy()
end
--- turn server:location into a git-style url
return d
end
+function gitrepo_source:has_working_copy()
+ return true
+end
+
--------------------------------------------------------------------------------
--- Check if a working copy for a git repository is available
function gitrepo.has_working_copy(info, sourcename)
assertIsTable(info)
assertIsStringN(sourcename)
- return true
+ return source.sources[sourcename]:has_working_copy()
end
--- Fetch a gitrepo source. Adapted from git plugin.
return d
end
+function svn.svn_source:has_working_copy()
+ return true
+end
+
function svn.fetch_source(info, sourcename)
local rc, re
local e = err.new("fetching source failed: %s", sourcename)
return true
end
-function svn.has_working_copy(info, sname)
- return true
+function svn.has_working_copy(info, sourcename)
+ return source.sources[sourcename]:has_working_copy()
end
function svn.toresult(info, sourcename, sourceset, directory)