hudson.plugins.git
Class Revision

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

public class Revision
extends java.lang.Object
implements java.io.Serializable

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
 boolean containsBranchName(java.lang.String name)
           
 java.util.Collection<Branch> getBranches()
           
 org.spearce.jgit.lib.ObjectId getSha1()
           
 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
clone, 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()

setSha1

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

getBranches

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


Copyright © 2009. All Rights Reserved.