Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/ConfigFile.java @ 498:0205a5c4566b
Issue 38: preserve user formatting and comments when updating configuration files
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 26 Oct 2012 18:17:15 +0200 |
parents | db48a77ec8ff |
children | e1b29756f901 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ConfigFile.java Thu Oct 25 19:59:08 2012 +0200 +++ b/src/org/tmatesoft/hg/internal/ConfigFile.java Fri Oct 26 18:17:15 2012 +0200 @@ -62,6 +62,11 @@ return sections == null ? Collections.<String>emptyList() : Collections.unmodifiableList(sections); } + /** + * Access map of section keys and values. + * @param sectionName name of the section to retrieve + * @return never <code>null</code>, empty map in case no section with specified name found + */ public Map<String,String> getSection(String sectionName) { if (sections == null) { return Collections.emptyMap();