--- Subversion Plugin
-- @module plugins.svn
--- Copyright (C) 2007-2016 emlix GmbH, see file AUTHORS
+-- Copyright (C) 2007-2017 emlix GmbH, see file AUTHORS
--
-- This file is part of e2factory, the emlix embedded build system.
-- For more information see http://www.e2factory.org
local cache = require("cache")
local class = require("class")
local e2lib = require("e2lib")
+local e2option = require("e2option")
local e2tool = require("e2tool")
local eio = require("eio")
local err = require("err")
local hash = require("hash")
local licence = require("licence")
local scm = require("scm")
+local source = require("source")
local strict = require("strict")
local tools = require("tools")
local url = require("url")
-local source = require("source")
plugin_descriptor = {
description = "SVN SCM Plugin",
return false, re
end
+ if e2tool.current_tool() == "fetch-sources" then
+ e2option.flag("svn", "select svn sources")
+ end
+
return true
end,
exit = function (ctx) return true end,
svn.svn_source = class("svn_source", source.basic_source)
+function svn.svn_source.static:is_scm_source_class()
+ return true
+end
+
+function svn.svn_source.static:is_selected_source_class(opts)
+ assertIsTable(self)
+ assertIsTable(opts)
+
+ if e2tool.current_tool() == "fetch-sources" and opts["svn"] then
+ return true
+ end
+ return false
+end
+
--- translate url into subversion url
-- @param u table: url table
-- @return string: subversion style url