Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgRepoConfig.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 | db48a77ec8ff |
| children |
comparison
equal
deleted
inserted
replaced
| 578:f97e81d13190 | 579:36e36b926747 |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011-2012 TMate Software Ltd | 2 * Copyright (c) 2011-2013 TMate Software Ltd |
| 3 * | 3 * |
| 4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
| 5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
| 6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
| 7 * | 7 * |
| 24 | 24 |
| 25 import org.tmatesoft.hg.internal.ConfigFile; | 25 import org.tmatesoft.hg.internal.ConfigFile; |
| 26 import org.tmatesoft.hg.util.Pair; | 26 import org.tmatesoft.hg.util.Pair; |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * Repository-specific configuration. | 29 * Repository configuration. |
| 30 * | 30 * |
| 31 * @see http://www.selenic.com/mercurial/hgrc.5.html | |
| 31 * @author Artem Tikhomirov | 32 * @author Artem Tikhomirov |
| 32 * @author TMate Software Ltd. | 33 * @author TMate Software Ltd. |
| 33 */ | 34 */ |
| 34 public final class HgRepoConfig /*implements RepoChangeListener, perhaps, also RepoChangeNotifier? */{ | 35 public final class HgRepoConfig /*implements RepoChangeListener, perhaps, also RepoChangeNotifier? */{ |
| 36 // TODO [1.2+] The name HgRepoConfig is unfortunate, we could've used this class not only for | |
| 37 // repository configuration but system-wide/global configuration, or user configuration (without repo), too. | |
| 38 // Perhaps, rename and deprecate? | |
| 39 | |
| 35 /*ease access for inner classes*/ final ConfigFile config; | 40 /*ease access for inner classes*/ final ConfigFile config; |
| 36 | 41 |
| 37 /*package-local*/HgRepoConfig(ConfigFile configFile) { | 42 /*package-local*/HgRepoConfig(ConfigFile configFile) { |
| 38 config = configFile; | 43 config = configFile; |
| 39 } | 44 } |
