Exemplo n.º 1
0
 private bool askForIsComplete()
 {
     try
     {
         ObjectWalk ow = new ObjectWalk(_transport.Local);
         foreach (ObjectId want in _askFor.Keys)
         {
             ow.markStart(ow.parseAny(want));
         }
         foreach (Ref @ref in _transport.Local.getAllRefs().Values)
         {
             ow.markUninteresting(ow.parseAny(@ref.ObjectId));
         }
         ow.checkConnectivity();
         return true;
     }
     catch (MissingObjectException)
     {
         return false;
     }
     catch (IOException e)
     {
         throw new TransportException("Unable to check connectivity.", e);
     }
 }
Exemplo n.º 2
0
 private void checkConnectivity()
 {
     ObjectWalk ow = new ObjectWalk(db);
     foreach (ReceiveCommand cmd in commands)
     {
         if (cmd.getResult() != ReceiveCommand.Result.NOT_ATTEMPTED)
             continue;
         if (cmd.getType() == ReceiveCommand.Type.DELETE)
             continue;
         ow.markStart(ow.parseAny(cmd.getNewId()));
     }
     foreach (Ref @ref in refs.Values)
         ow.markUninteresting(ow.parseAny(@ref.ObjectId));
     ow.checkConnectivity();
 }
Exemplo n.º 3
0
 protected override GitSharp.RevWalk.RevWalk createRevWalk()
 {
     return objw = new ObjectWalk(db);
 }
Exemplo n.º 4
0
	protected RevWalk createRevWalk() {
		return objw = new ObjectWalk(db);
	}