/// <exception cref="System.IO.FileNotFoundException"></exception> /// <exception cref="System.IO.IOException"></exception> private byte[] MakeBundle(string name, string anObjectToInclude, RevCommit assume ) { BundleWriter bw; bw = new BundleWriter(db); bw.Include(name, ObjectId.FromString(anObjectToInclude)); if (assume != null) { bw.Assume(assume); } ByteArrayOutputStream @out = new ByteArrayOutputStream(); bw.WriteBundle(NullProgressMonitor.INSTANCE, @out); return(@out.ToByteArray()); }
/// <exception cref="System.IO.FileNotFoundException"></exception> /// <exception cref="System.IO.IOException"></exception> private byte[] MakeBundle(string name, string anObjectToInclude, RevCommit assume ) { BundleWriter bw; bw = new BundleWriter(db); bw.Include(name, ObjectId.FromString(anObjectToInclude)); if (assume != null) { bw.Assume(assume); } ByteArrayOutputStream @out = new ByteArrayOutputStream(); bw.WriteBundle(NullProgressMonitor.INSTANCE, @out); return @out.ToByteArray(); }