Exemplo n.º 1
0
        /// <exception cref="System.Exception"></exception>
        internal CommitBuilder(TestRepository _enclosing, BranchBuilder
                               b)
        {
            this._enclosing = _enclosing;
            this.branch     = b;
            Ref @ref = this._enclosing.db.GetRef(this.branch.@ref);

            if (@ref != null)
            {
                this.Parent(this._enclosing.pool.ParseCommit(@ref.GetObjectId()));
            }
        }
Exemplo n.º 2
0
        /// <exception cref="System.Exception"></exception>
        internal CommitBuilder(TestRepository _enclosing, CommitBuilder
                               prior)
        {
            this._enclosing = _enclosing;
            this.branch     = prior.branch;
            DirCacheBuilder b = this.tree.Builder();

            for (int i = 0; i < prior.tree.GetEntryCount(); i++)
            {
                b.Add(prior.tree.GetEntry(i));
            }
            b.Finish();
            this.parents.AddItem(prior.Create());
        }
Exemplo n.º 3
0
			/// <exception cref="System.Exception"></exception>
			internal CommitBuilder(TestRepository _enclosing, CommitBuilder
				 prior)
			{
				this._enclosing = _enclosing;
				this.branch = prior.branch;
				DirCacheBuilder b = this.tree.Builder();
				for (int i = 0; i < prior.tree.GetEntryCount(); i++)
				{
					b.Add(prior.tree.GetEntry(i));
				}
				b.Finish();
				this.parents.AddItem(prior.Create());
			}
Exemplo n.º 4
0
			/// <exception cref="System.Exception"></exception>
			internal CommitBuilder(TestRepository _enclosing, BranchBuilder
				 b)
			{
				this._enclosing = _enclosing;
				this.branch = b;
				Ref @ref = this._enclosing.db.GetRef(this.branch.@ref);
				if (@ref != null)
				{
					this.Parent(this._enclosing.pool.ParseCommit(@ref.GetObjectId()));
				}
			}
Exemplo n.º 5
0
			public CommitBuilder(TestRepository _enclosing)
			{
				this._enclosing = _enclosing;
				this.branch = null;
			}
Exemplo n.º 6
0
 public CommitBuilder(TestRepository _enclosing)
 {
     this._enclosing = _enclosing;
     this.branch     = null;
 }