comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 579:36e36b926747

Provide means to read user-specific configuration, with no specific repository selected
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 17 Apr 2013 16:06:10 +0200
parents e4ee4bf4c7d0
children e447384f3771
comparison
equal deleted inserted replaced
578:f97e81d13190 579:36e36b926747
322 } 322 }
323 return subRepos.all(); 323 return subRepos.all();
324 } 324 }
325 325
326 326
327 /**
328 * Repository-specific configuration.
329 * @return access to configuration options, never <code>null</code>
330 */
327 public HgRepoConfig getConfiguration() /* XXX throws HgInvalidControlFileException? Description of the exception suggests it is only for files under ./hg/*/ { 331 public HgRepoConfig getConfiguration() /* XXX throws HgInvalidControlFileException? Description of the exception suggests it is only for files under ./hg/*/ {
328 if (repoConfig == null) { 332 if (repoConfig == null) {
329 try { 333 try {
330 ConfigFile configFile = impl.readConfiguration(); 334 ConfigFile configFile = impl.readConfiguration();
331 repoConfig = new HgRepoConfig(configFile); 335 repoConfig = new HgRepoConfig(configFile);