hudson.plugins.git
Class Revision
java.lang.Object
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
Revision
public Revision(org.spearce.jgit.lib.ObjectId sha1)
Revision
public Revision(org.spearce.jgit.lib.ObjectId sha1,
Collection<Branch> branches)
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.