hudson.plugins.mercurial.browser
Class KilnHG

java.lang.Object
  extended by hudson.scm.RepositoryBrowser<MercurialChangeSet>
      extended by hudson.plugins.mercurial.browser.HgBrowser
          extended by hudson.plugins.mercurial.browser.KilnHG
All Implemented Interfaces:
ExtensionPoint, Describable<RepositoryBrowser<?>>, Serializable

public class KilnHG
extends HgBrowser

Mercurial web interface served using a Kiln repository.

See Also:
Serialized Form

Nested Class Summary
static class KilnHG.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class hudson.plugins.mercurial.browser.HgBrowser
current
 
Constructor Summary
KilnHG(String url)
           
 
Method Summary
 URL getChangeSetLink(MercurialChangeSet changeSet)
          
 URL getDiffLink(String path)
          Returns a link to a diff for a file.
 URL getFileLink(String path)
          Returns a link to a specific revision of a file.
 
Methods inherited from class hudson.plugins.mercurial.browser.HgBrowser
checkCurrentIsNotNull, getUrl, readResolve
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, getDescriptor, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

KilnHG

@DataBoundConstructor
public KilnHG(String url)
       throws MalformedURLException
Throws:
MalformedURLException
Method Detail

getChangeSetLink

public URL getChangeSetLink(MercurialChangeSet changeSet)
                     throws IOException

Overrides:
getChangeSetLink in class HgBrowser
Throws:
IOException

getFileLink

public URL getFileLink(String path)
                throws MalformedURLException
Returns a link to a specific revision of a file. Throws IllegalStateException when this method is called before at least one call to getChangeSetLink(MercurialChangeSet).

Overrides:
getFileLink in class HgBrowser
Parameters:
path - to a file.
Returns:
URL pointing to a specific revision of the file.
Throws:
MalformedURLException

getDiffLink

public URL getDiffLink(String path)
                throws MalformedURLException
Returns a link to a diff for a file. Throws IllegalStateException when this method is called before at least one call to getChangeSetLink(MercurialChangeSet).

Overrides:
getDiffLink in class HgBrowser
Parameters:
path - to a file.
Returns:
URL pointing to a specific revision of the file.
Throws:
MalformedURLException


Copyright © 2010. All Rights Reserved.