コード例 #1
0
 public virtual void TestEmpty()
 {
     NUnit.Framework.Assert.IsNull(q.Next());
     NUnit.Framework.Assert.IsTrue(q.EverbodyHasFlag(RevWalk.UNINTERESTING));
     NUnit.Framework.Assert.IsFalse(q.AnybodyHasFlag(RevWalk.UNINTERESTING));
     NUnit.Framework.Assert.AreEqual(0, q.OutputType());
 }
コード例 #2
0
ファイル: MergeBaseGenerator.cs プロジェクト: shoff/ngit
 internal virtual void Init(AbstractRevQueue p)
 {
     try
     {
         for (; ;)
         {
             RevCommit c = p.Next();
             if (c == null)
             {
                 break;
             }
             Add(c);
         }
     }
     finally
     {
         // Always free the flags immediately. This ensures the flags
         // will be available for reuse when the walk resets.
         //
         walker.FreeFlag(branchMask);
         // Setup the condition used by carryOntoOne to detect a late
         // merge base and produce it on the next round.
         //
         recarryTest = branchMask | POPPED;
         recarryMask = branchMask | POPPED | MERGE_BASE;
     }
 }
コード例 #3
0
		internal virtual void Init(AbstractRevQueue p)
		{
			try
			{
				for (; ; )
				{
					RevCommit c = p.Next();
					if (c == null)
					{
						break;
					}
					Add(c);
				}
			}
			finally
			{
				// Always free the flags immediately. This ensures the flags
				// will be available for reuse when the walk resets.
				//
				walker.FreeFlag(branchMask);
				// Setup the condition used by carryOntoOne to detect a late
				// merge base and produce it on the next round.
				//
				recarryTest = branchMask | POPPED;
				recarryMask = branchMask | POPPED | MERGE_BASE;
			}
		}