Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgLookup.java @ 170:71ddbf8603e8
Initial clone: populate given directory from a bundle. Everything but remote server access is there, albeit prototype code style
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 23 Mar 2011 20:46:00 +0100 |
parents | 8c8e3f372fa1 |
children | 2c3e96674e2a |
comparison
equal
deleted
inserted
replaced
169:8c8e3f372fa1 | 170:71ddbf8603e8 |
---|---|
16 */ | 16 */ |
17 package org.tmatesoft.hg.repo; | 17 package org.tmatesoft.hg.repo; |
18 | 18 |
19 import java.io.File; | 19 import java.io.File; |
20 import java.io.IOException; | 20 import java.io.IOException; |
21 import java.net.URL; | |
21 | 22 |
22 import org.tmatesoft.hg.core.HgException; | 23 import org.tmatesoft.hg.core.HgException; |
23 import org.tmatesoft.hg.internal.DataAccessProvider; | 24 import org.tmatesoft.hg.internal.DataAccessProvider; |
24 | 25 |
25 /** | 26 /** |
67 if (location == null || !location.canRead()) { | 68 if (location == null || !location.canRead()) { |
68 throw new IllegalArgumentException(); | 69 throw new IllegalArgumentException(); |
69 } | 70 } |
70 return new HgBundle(new DataAccessProvider(), location); | 71 return new HgBundle(new DataAccessProvider(), location); |
71 } | 72 } |
73 | |
74 public HgRemoteRepository detect(URL url) throws HgException { | |
75 if (Boolean.FALSE.booleanValue()) { | |
76 throw HgRepository.notImplemented(); | |
77 } | |
78 return null; | |
79 } | |
72 } | 80 } |