Esempio 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()));
            }
        }
Esempio 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());
        }
Esempio 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());
			}
Esempio 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()));
				}
			}
Esempio n. 5
0
			public CommitBuilder(TestRepository _enclosing)
			{
				this._enclosing = _enclosing;
				this.branch = null;
			}
Esempio n. 6
0
 public CommitBuilder(TestRepository _enclosing)
 {
     this._enclosing = _enclosing;
     this.branch     = null;
 }