Esempio n. 1
0
 private void NegotiateBegin()
 {
     _walk.resetRetain(REACHABLE, ADVERTISED);
     _walk.markStart(_reachableCommits);
     _walk.sort(RevSort.COMMIT_TIME_DESC);
     _walk.setRevFilter(new NegotiateBeginRevFilter(COMMON, ADVERTISED));
 }
Esempio n. 2
0
        private bool WantSatisfied(RevCommit want)
        {
            _walk.resetRetain(SAVE);
            _walk.markStart(want);

            while (true)
            {
                RevCommit c = _walk.next();
                if (c == null)
                {
                    break;
                }
                if (c.has(PEER_HAS))
                {
                    AddCommonBase(c);
                    return(true);
                }
            }
            return(false);
        }