hudson.plugins.git
Class Revision

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

@ExportedBean(defaultVisibility=999)
public class Revision
extends Object
implements Serializable, 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, Collection<Branch> branches)
           
 
Method Summary
 Revision clone()
           
 boolean containsBranchName(String name)
           
 Collection<Branch> getBranches()
           
 org.spearce.jgit.lib.ObjectId getSha1()
           
 String getSha1String()
           
 void setBranches(Collection<Branch> branches)
           
 void setSha1(org.spearce.jgit.lib.ObjectId sha1)
           
 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,
                Collection<Branch> branches)
Method Detail

getSha1

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

getSha1String

@Exported(name="SHA1")
public String getSha1String()

setSha1

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

getBranches

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

setBranches

public void setBranches(Collection<Branch> branches)

containsBranchName

public boolean containsBranchName(String name)

toString

public String toString()
Overrides:
toString in class Object

clone

public Revision clone()
Overrides:
clone in class Object


Copyright © 2004-2011 Hudson. All Rights Reserved.