hudson.plugins.git
Class Revision

java.lang.Object
  extended by hudson.plugins.git.Revision
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

@ExportedBean(defaultVisibility=999)
public class Revision
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A Revision is a SHA1 in the object tree, and the collection of branches that share this ID. Unlike other SCMs, git can have >1 branches point at the _same_ commit.

Author:
magnayn
See Also:
Serialized Form

Constructor Summary
Revision(org.spearce.jgit.lib.ObjectId sha1)
           
Revision(org.spearce.jgit.lib.ObjectId sha1, java.util.Collection<Branch> branches)
           
 
Method Summary
 Revision clone()
           
 boolean containsBranchName(java.lang.String name)
           
 java.util.Collection<Branch> getBranches()
           
 org.spearce.jgit.lib.ObjectId getSha1()
           
 java.lang.String getSha1String()
           
 void setBranches(java.util.Collection<Branch> branches)
           
 void setSha1(org.spearce.jgit.lib.ObjectId sha1)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Revision

public Revision(org.spearce.jgit.lib.ObjectId sha1)

Revision

public Revision(org.spearce.jgit.lib.ObjectId sha1,
                java.util.Collection<Branch> branches)
Method Detail

getSha1

public org.spearce.jgit.lib.ObjectId getSha1()

getSha1String

@Exported(name="SHA1")
public java.lang.String getSha1String()

setSha1

public void setSha1(org.spearce.jgit.lib.ObjectId sha1)

getBranches

@Exported(name="branch")
public java.util.Collection<Branch> getBranches()

setBranches

public void setBranches(java.util.Collection<Branch> branches)

containsBranchName

public boolean containsBranchName(java.lang.String name)

toString

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

clone

public Revision clone()
Overrides:
clone in class java.lang.Object


Copyright © 2010. All Rights Reserved.