Метод | Описание | |
---|---|---|
BundleWriter ( Repository repo, ProgressMonitor monitor ) : System |
Create a writer for a bundle.
|
|
Dispose ( ) : void | ||
assume ( |
Assume a commit is available on the recipient's side. In order to fetch from a bundle the recipient must have any assumed commit. Each assumed commit is explicitly recorded in the bundle header to permit the recipient to validate it has these objects.
|
|
include ( Ref r ) : void |
Include a single ref (a name/object pair) in the bundle. This is a utility function for:
|
|
include ( String name, AnyObjectId id ) : void |
Include an object (and everything reachable from it) in the bundle.
|
|
writeBundle ( Stream os ) : void |
Метод | Описание | |
---|---|---|
writeString ( Stream os, string data ) : void |
public BundleWriter ( Repository repo, ProgressMonitor monitor ) : System | ||
repo | Repository | repository where objects are stored. |
monitor | ProgressMonitor | operations progress monitor. |
Результат | System |
public assume ( |
||
c | /// the commit to assume being available. This commit should be /// parsed and not disposed in order to maximize the amount of /// debugging information available in the bundle stream. /// | |
Результат | void |
public include ( String name, AnyObjectId id ) : void | ||
name | String | /// name the recipient can discover this object as from the /// bundle's list of advertised refs . The name must be a valid /// ref format and must not have already been included in this /// bundle writer. /// |
id | AnyObjectId | /// object to pack. Multiple refs may point to the same object. /// |
Результат | void |