Merge "scm svn: add support for viewvc-url"
This commit is contained in:
commit
d7add10803
|
@ -584,6 +584,7 @@ def svn(parser, xml_parent, data):
|
|||
and exclusion patterns for displaying changelog entries as it does for
|
||||
polling for changes (default false)
|
||||
:arg list repos: list of repositories to checkout (optional)
|
||||
:arg str viewvc-url: URL of the svn web interface (optional)
|
||||
|
||||
:Repo: * **url** (`str`) -- URL for the repository
|
||||
* **basedir** (`str`) -- Location relative to the workspace
|
||||
|
@ -610,6 +611,10 @@ def svn(parser, xml_parent, data):
|
|||
"""
|
||||
scm = XML.SubElement(xml_parent, 'scm', {'class':
|
||||
'hudson.scm.SubversionSCM'})
|
||||
if 'viewvc-url' in data:
|
||||
browser = XML.SubElement(
|
||||
scm, 'browser', {'class': 'hudson.scm.browsers.ViewSVN'})
|
||||
XML.SubElement(browser, 'url').text = data['viewvc-url']
|
||||
locations = XML.SubElement(scm, 'locations')
|
||||
|
||||
def populate_repo_xml(parent, data):
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<scm class="hudson.scm.SubversionSCM">
|
||||
<browser class="hudson.scm.browsers.ViewSVN">
|
||||
<url>http://svn.apache.org/viewvc/spamassassin/trunk</url>
|
||||
</browser>
|
||||
<locations>
|
||||
<hudson.scm.SubversionSCM_-ModuleLocation>
|
||||
<remote>http://svn.apache.org/repos/asf/spamassassin/trunk</remote>
|
||||
|
|
|
@ -20,3 +20,4 @@ scm:
|
|||
exclusion-revprop-name: propname
|
||||
filter-changelog: true
|
||||
ignore-property-changes-on-directories: true
|
||||
viewvc-url: http://svn.apache.org/viewvc/spamassassin/trunk
|
||||
|
|
Loading…
Reference in New Issue