jetbrains.buildServer.serverSide
Class BuildRevision

java.lang.Object
  extended by jetbrains.buildServer.serverSide.BuildRevision

public class BuildRevision
extends java.lang.Object

Represents version control server revision checked out for a VCS Root for a build


Constructor Summary
BuildRevision(VcsRootInstanceEntry vcsRootEntry, RepositoryVersion revision)
          Creates new revision object.
BuildRevision(VcsRootInstance root, java.lang.String revision, java.lang.String checkoutRules, java.lang.String revisionDisplayName)
          Creates new revision object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 CheckoutRules getCheckoutRules()
          Returns associated checkout rules.
 VcsRootInstanceEntry getEntry()
           
 RepositoryVersion getRepositoryVersion()
          Returns pair of revision and revision display name as RepositoryVersion object.
 java.lang.String getRevision()
          Revision number.
 java.lang.String getRevisionDisplayName()
          Revision number in readable format.
 VcsRootInstance getRoot()
          Checked out vcs root.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildRevision

public BuildRevision(@NotNull
                     VcsRootInstance root,
                     @NotNull
                     java.lang.String revision,
                     @NotNull
                     java.lang.String checkoutRules,
                     java.lang.String revisionDisplayName)
Creates new revision object.

Parameters:
root - versioned root.
revision - repository version.
checkoutRules - checkout rules string presentation.
revisionDisplayName - repository version display name.

BuildRevision

public BuildRevision(@NotNull
                     VcsRootInstanceEntry vcsRootEntry,
                     @NotNull
                     RepositoryVersion revision)
Creates new revision object.

Parameters:
vcsRootEntry - VcsRoot + CheckoutRules information.
revision - repository version.
Method Detail

getRoot

public VcsRootInstance getRoot()
Checked out vcs root.

Returns:
version of VCS root checked out for the build.

getRevision

@NotNull
public java.lang.String getRevision()
Revision number.

Returns:
string representation of repository version.

getRevisionDisplayName

public java.lang.String getRevisionDisplayName()
Revision number in readable format.

Returns:
revision of the version control repository in human readable format.

getEntry

public VcsRootInstanceEntry getEntry()
Returns:
VcsRootEntry for this object.

getCheckoutRules

public CheckoutRules getCheckoutRules()
Returns associated checkout rules.

Returns:
checkout rules object.

getRepositoryVersion

@NotNull
public RepositoryVersion getRepositoryVersion()
Returns pair of revision and revision display name as RepositoryVersion object.

Returns:
see above
Since:
5.0

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object