Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgLookup.java @ 526:2f9ed6bcefa2
Initial support for Revert command with accompanying minor refactoring
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 15 Jan 2013 17:07:19 +0100 |
parents | 0bd2d0441d8f |
children | f97e81d13190 |
comparison
equal
deleted
inserted
replaced
525:0be5be8d57e9 | 526:2f9ed6bcefa2 |
---|---|
26 import org.tmatesoft.hg.core.HgRepositoryNotFoundException; | 26 import org.tmatesoft.hg.core.HgRepositoryNotFoundException; |
27 import org.tmatesoft.hg.core.SessionContext; | 27 import org.tmatesoft.hg.core.SessionContext; |
28 import org.tmatesoft.hg.internal.BasicSessionContext; | 28 import org.tmatesoft.hg.internal.BasicSessionContext; |
29 import org.tmatesoft.hg.internal.ConfigFile; | 29 import org.tmatesoft.hg.internal.ConfigFile; |
30 import org.tmatesoft.hg.internal.DataAccessProvider; | 30 import org.tmatesoft.hg.internal.DataAccessProvider; |
31 import org.tmatesoft.hg.internal.Internals; | |
31 import org.tmatesoft.hg.repo.HgRepoConfig.PathsSection; | 32 import org.tmatesoft.hg.repo.HgRepoConfig.PathsSection; |
32 | 33 |
33 /** | 34 /** |
34 * Utility methods to find Mercurial repository at a given location | 35 * Utility methods to find Mercurial repository at a given location |
35 * | 36 * |
127 public HgRemoteRepository detect(URL url) throws HgBadArgumentException { | 128 public HgRemoteRepository detect(URL url) throws HgBadArgumentException { |
128 if (url == null) { | 129 if (url == null) { |
129 throw new IllegalArgumentException(); | 130 throw new IllegalArgumentException(); |
130 } | 131 } |
131 if (Boolean.FALSE.booleanValue()) { | 132 if (Boolean.FALSE.booleanValue()) { |
132 throw HgRepository.notImplemented(); | 133 throw Internals.notImplemented(); |
133 } | 134 } |
134 return new HgRemoteRepository(getContext(), url); | 135 return new HgRemoteRepository(getContext(), url); |
135 } | 136 } |
136 | 137 |
137 private ConfigFile getGlobalConfig() { | 138 private ConfigFile getGlobalConfig() { |