Package hudson.scm.browsers
Class Phabricator
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
-
- hudson.scm.SubversionRepositoryBrowser
-
- hudson.scm.browsers.Phabricator
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
public class Phabricator extends SubversionRepositoryBrowser
Svn Browser for Phabricator- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Phabricator.PhabricatorDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Phabricator(URL url, String repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet)
Creates a link to the changeset https://[Phabricator URL]/r$repo$revisionURL
getDiffLink(SubversionChangeLogSet.Path path)
Creates a link to the commit diff.URL
getFileLink(SubversionChangeLogSet.Path path)
Creates a link to the file.String
getRepo()
URL
getUrl()
-
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
repo
public final String repo
The repo id for the projectWithout leading "r"
-
url
public final URL url
The URL of the top of the site.Normalized to ends with '/', like
http://svn.apache.org/wsvn/
It may contain a query parameter like?root=foobar
, so relative URL construction needs to be done with care.
-
-
Method Detail
-
getUrl
public URL getUrl()
-
getRepo
public String getRepo()
-
getChangeSetLink
public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException
Creates a link to the changeset https://[Phabricator URL]/r$repo$revision- Specified by:
getChangeSetLink
in classRepositoryBrowser<SubversionChangeLogSet.LogEntry>
- Returns:
- diff link
- Throws:
IOException
-
getDiffLink
public URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException
Creates a link to the commit diff. https://[Phabricator URL]/diffusion/$repo/change/master/$path;$revision- Specified by:
getDiffLink
in classSubversionRepositoryBrowser
- Parameters:
path
-- Returns:
- diff link
- Throws:
IOException
-
getFileLink
public URL getFileLink(SubversionChangeLogSet.Path path) throws IOException
Creates a link to the file. https://[Phabricator URL]/diffusion/$repo/history/master/$path;$revision- Specified by:
getFileLink
in classSubversionRepositoryBrowser
- Parameters:
path
-- Returns:
- file link
- Throws:
IOException
-
-