Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/remote/Connector.java @ 698:822f3a83ff57
in, out and clone tests pass for ssh repositories. Infrastructure to decouple HgRemoteRepository from specific Connector implementation
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 06 Aug 2013 21:18:33 +0200 |
parents | 9859fcea475d |
children | a483b2b68a2e |
comparison
equal
deleted
inserted
replaced
697:24f4efedc9d5 | 698:822f3a83ff57 |
---|---|
16 */ | 16 */ |
17 package org.tmatesoft.hg.internal.remote; | 17 package org.tmatesoft.hg.internal.remote; |
18 | 18 |
19 import java.io.InputStream; | 19 import java.io.InputStream; |
20 import java.io.OutputStream; | 20 import java.io.OutputStream; |
21 import java.net.URL; | 21 import java.net.URI; |
22 import java.util.Collection; | 22 import java.util.Collection; |
23 import java.util.List; | 23 import java.util.List; |
24 | 24 |
25 import org.tmatesoft.hg.core.HgRemoteConnectionException; | 25 import org.tmatesoft.hg.core.HgRemoteConnectionException; |
26 import org.tmatesoft.hg.core.Nodeid; | 26 import org.tmatesoft.hg.core.Nodeid; |
27 import org.tmatesoft.hg.core.SessionContext; | 27 import org.tmatesoft.hg.core.SessionContext; |
28 import org.tmatesoft.hg.repo.HgRemoteRepository.Range; | |
28 import org.tmatesoft.hg.repo.HgRuntimeException; | 29 import org.tmatesoft.hg.repo.HgRuntimeException; |
29 import org.tmatesoft.hg.repo.HgRemoteRepository.Range; | |
30 | 30 |
31 /** | 31 /** |
32 * | 32 * |
33 * @author Artem Tikhomirov | 33 * @author Artem Tikhomirov |
34 * @author TMate Software Ltd. | 34 * @author TMate Software Ltd. |
44 static final String CMD_PUSHKEY = "pushkey"; | 44 static final String CMD_PUSHKEY = "pushkey"; |
45 static final String CMD_LISTKEYS = "listkeys"; | 45 static final String CMD_LISTKEYS = "listkeys"; |
46 static final String NS_BOOKMARKS = "bookmarks"; | 46 static final String NS_BOOKMARKS = "bookmarks"; |
47 static final String NS_PHASES = "phases"; | 47 static final String NS_PHASES = "phases"; |
48 | 48 |
49 void init(URL url, SessionContext sessionContext, Object globalConfig) throws HgRuntimeException; | 49 void init(URI uri, SessionContext sessionContext, Object globalConfig) throws HgRuntimeException; |
50 String getServerLocation(); | 50 String getServerLocation(); |
51 // | 51 // |
52 void connect() throws HgRemoteConnectionException, HgRuntimeException; | 52 void connect() throws HgRemoteConnectionException, HgRuntimeException; |
53 void disconnect() throws HgRemoteConnectionException, HgRuntimeException; | 53 void disconnect() throws HgRemoteConnectionException, HgRuntimeException; |
54 void sessionBegin() throws HgRemoteConnectionException, HgRuntimeException; | 54 void sessionBegin() throws HgRemoteConnectionException, HgRuntimeException; |