Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgInternals.java @ 331:a37ce7145c3f
Access to repository configuration
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 05 Nov 2011 04:21:18 +0100 |
parents | 650b45d290b1 |
children | 863356c2847e |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java Tue Oct 25 03:30:02 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgInternals.java Sat Nov 05 04:21:18 2011 +0100 @@ -26,7 +26,6 @@ import java.net.UnknownHostException; import org.tmatesoft.hg.core.SessionContext; -import org.tmatesoft.hg.internal.ConfigFile; import org.tmatesoft.hg.internal.Experimental; import org.tmatesoft.hg.internal.RelativePathRewrite; import org.tmatesoft.hg.util.FileIterator; @@ -97,10 +96,6 @@ return repo.getRepositoryRoot(); } - public ConfigFile getRepoConfig() { - return repo.getConfigFile(); - } - public static HgIgnore newHgIgnore(Reader source) throws IOException { HgIgnore hgIgnore = new HgIgnore(); BufferedReader br = source instanceof BufferedReader ? (BufferedReader) source : new BufferedReader(source); @@ -115,7 +110,7 @@ if (hgUser != null && hgUser.trim().length() > 0) { return hgUser.trim(); } - String configValue = getRepoConfig().getString("ui", "username", null); + String configValue = repo.getConfiguration().getStringValue("ui", "username", null); if (configValue != null) { return configValue; }