/// <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());
        }
Ejemplo n.º 2
0
		/// <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();
		}