WalkPushConnection(final WalkTransport walkTransport, final WalkRemoteObjectDatabase w) { transport = (Transport) walkTransport; local = transport.local; uri = transport.getURI(); dest = w; }
private void fetchObjects(ProgressMonitor monitor) throws TransportException { try { conn.setPackLockMessage("jgit fetch " + transport.uri); //$NON-NLS-1$ conn.fetch(monitor, askFor.values(), have); } finally { packLocks.addAll(conn.getPackLocks()); } if (transport.isCheckFetchedObjects() && !conn.didFetchTestConnectivity() && !askForIsComplete()) throw new TransportException(transport.getURI(), JGitText.get().peerDidNotSupplyACompleteObjectGraph); }
private void want(Ref src, RefSpec spec) throws TransportException { final ObjectId newId = src.getObjectId(); if (newId == null) { throw new NullPointerException(MessageFormat.format( JGitText.get().transportProvidedRefWithNoObjectId, src.getName())); } if (spec.getDestination() != null) { final TrackingRefUpdate tru = createUpdate(spec, newId); if (newId.equals(tru.getOldObjectId())) return; localUpdates.add(tru); } askFor.put(newId, src); final FetchHeadRecord fhr = new FetchHeadRecord(); fhr.newValue = newId; fhr.notForMerge = spec.getDestination() != null; fhr.sourceName = src.getName(); fhr.sourceURI = transport.getURI(); fetchHeadUpdates.add(fhr); }
WalkPushConnection(final WalkTransport walkTransport, final WalkRemoteObjectDatabase w) { transport = (Transport) walkTransport; local = transport.local; uri = transport.getURI(); dest = w; }
WalkPushConnection(final WalkTransport walkTransport, final WalkRemoteObjectDatabase w) { transport = (Transport) walkTransport; local = transport.local; uri = transport.getURI(); dest = w; }
conn = transport.openFetch(); try { result.setAdvertisedRefs(transport.getURI(), conn.getRefsMap()); result.peerUserAgent = conn.getPeerUserAgent(); final Set<Ref> matched = new HashSet<>();
fastForward = false; } catch (Exception x) { throw new TransportException(transport.getURI(), MessageFormat.format( JGitText.get().readingObjectsFromLocalRepositoryFailed, x.getMessage()), x);
connection = transport.openPush(); try { res.setAdvertisedRefs(transport.getURI(), connection .getRefsMap()); res.peerUserAgent = connection.getPeerUserAgent();
private void fetchObjects(final ProgressMonitor monitor) throws TransportException { try { conn.setPackLockMessage("jgit fetch " + transport.uri); //$NON-NLS-1$ conn.fetch(monitor, askFor.values(), have); } finally { packLocks.addAll(conn.getPackLocks()); } if (transport.isCheckFetchedObjects() && !conn.didFetchTestConnectivity() && !askForIsComplete()) throw new TransportException(transport.getURI(), JGitText.get().peerDidNotSupplyACompleteObjectGraph); }
private void want(final Ref src, final RefSpec spec) throws TransportException { final ObjectId newId = src.getObjectId(); if (newId == null) { throw new NullPointerException(MessageFormat.format( JGitText.get().transportProvidedRefWithNoObjectId, src.getName())); } if (spec.getDestination() != null) { final TrackingRefUpdate tru = createUpdate(spec, newId); if (newId.equals(tru.getOldObjectId())) return; localUpdates.add(tru); } askFor.put(newId, src); final FetchHeadRecord fhr = new FetchHeadRecord(); fhr.newValue = newId; fhr.notForMerge = spec.getDestination() != null; fhr.sourceName = src.getName(); fhr.sourceURI = transport.getURI(); fetchHeadUpdates.add(fhr); }
private void fetchObjects(ProgressMonitor monitor) throws TransportException { try { conn.setPackLockMessage("jgit fetch " + transport.uri); //$NON-NLS-1$ conn.fetch(monitor, askFor.values(), have); } finally { packLocks.addAll(conn.getPackLocks()); } if (transport.isCheckFetchedObjects() && !conn.didFetchTestConnectivity() && !askForIsComplete()) throw new TransportException(transport.getURI(), JGitText.get().peerDidNotSupplyACompleteObjectGraph); }
private void want(Ref src, RefSpec spec) throws TransportException { final ObjectId newId = src.getObjectId(); if (newId == null) { throw new NullPointerException(MessageFormat.format( JGitText.get().transportProvidedRefWithNoObjectId, src.getName())); } if (spec.getDestination() != null) { final TrackingRefUpdate tru = createUpdate(spec, newId); if (newId.equals(tru.getOldObjectId())) return; localUpdates.add(tru); } askFor.put(newId, src); final FetchHeadRecord fhr = new FetchHeadRecord(); fhr.newValue = newId; fhr.notForMerge = spec.getDestination() != null; fhr.sourceName = src.getName(); fhr.sourceURI = transport.getURI(); fetchHeadUpdates.add(fhr); }
conn = transport.openFetch(); try { result.setAdvertisedRefs(transport.getURI(), conn.getRefsMap()); result.peerUserAgent = conn.getPeerUserAgent(); final Set<Ref> matched = new HashSet<>();
conn = transport.openFetch(); try { result.setAdvertisedRefs(transport.getURI(), conn.getRefsMap()); result.peerUserAgent = conn.getPeerUserAgent(); final Set<Ref> matched = new HashSet<Ref>();
fastForward = false; } catch (Exception x) { throw new TransportException(transport.getURI(), MessageFormat.format( JGitText.get().readingObjectsFromLocalRepositoryFailed, x.getMessage()), x);
fastForward = false; } catch (Exception x) { throw new TransportException(transport.getURI(), MessageFormat.format( JGitText.get().readingObjectsFromLocalRepositoryFailed, x.getMessage()), x);
connection = transport.openPush(); try { res.setAdvertisedRefs(transport.getURI(), connection .getRefsMap()); res.peerUserAgent = connection.getPeerUserAgent();
connection = transport.openPush(); try { res.setAdvertisedRefs(transport.getURI(), connection .getRefsMap()); res.peerUserAgent = connection.getPeerUserAgent();