Esempio n. 1
0
        protected void doFetch(ProgressMonitor monitor, List <Ref> want, List <ObjectId> have)
        {
            try
            {
                MarkRefsAdvertised();
                MarkReachable(have, MaxTimeWanted(want));

                if (SendWants(want))
                {
                    Negotiate(monitor);

                    _walk.Dispose();
                    _reachableCommits = null;

                    ReceivePack(monitor);
                }
            }
            catch (CancelledException)
            {
                Close();
                return;
            }
            catch (IOException err)
            {
                Close();
                throw new TransportException(err.Message, err);
            }
        }
        protected void doFetch(ProgressMonitor monitor, ICollection <Ref> want, IList <ObjectId> have)
        {
            try
            {
                MarkRefsAdvertised();
                MarkReachable(have, MaxTimeWanted(want));

                if (SendWants(want))
                {
                    Negotiate(monitor);

                    _walk.Dispose();
                    _reachableCommits = null;

                    ReceivePack(monitor);
                }
            }
            catch (CancelledException)
            {
                Dispose();
                return; // Caller should test (or just know) this themselves.
            }
            catch (IOException err)
            {
                Dispose();
                throw new TransportException(err.Message, err);
            }
            catch (Exception err)
            {
                Dispose();
                throw new TransportException(err.Message, err);
            }
        }
Esempio n. 3
0
 public void Dispose()
 {
     _revWalk.Dispose();
     COMPLETE.Dispose();
     IN_WORK_QUEUE.Dispose();
     LOCALLY_SEEN.Dispose();
     _objectDigest.Dispose();
 }
Esempio n. 4
0
 public void Dispose()
 {
     _walk.Dispose();
     ADVERTISED.Dispose();
     WANT.Dispose();
     PEER_HAS.Dispose();
     COMMON.Dispose();
     _rawIn.Dispose();
     _rawOut.Dispose();
 }
Esempio n. 5
0
 public void Dispose()
 {
     _walk.Dispose();
     ADVERTISED.Dispose();
     WANT.Dispose();
     PEER_HAS.Dispose();
     COMMON.Dispose();
     if (_rawIn != null)
     {
         _rawIn.Dispose();
     }
     if (_rawOut != null)
     {
         _rawOut.Dispose();
     }
 }
Esempio n. 6
0
 public void Dispose()
 {
     _walk.Dispose();
     ADVERTISED.Dispose();
 }
Esempio n. 7
0
 public void Dispose()
 {
     _walk.Dispose();
 }
Esempio n. 8
0
 public void Dispose()
 {
     _walker.Dispose();
     _transport.Dispose();
 }