Пример #1
0
            /// <exception cref="System.Exception"></exception>
            internal CommitBuilder(TestRepository _enclosing, TestRepository.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()));
                }
            }
Пример #2
0
            /// <exception cref="System.Exception"></exception>
            internal CommitBuilder(TestRepository _enclosing, TestRepository.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());
            }
Пример #3
0
 public CommitBuilder(TestRepository _enclosing)
 {
     this._enclosing = _enclosing;
     this.branch     = null;
 }