Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/ConfigFile.java @ 128:44b97930570c
Introduced ChangelogHelper to look up changesets files were modified in
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 20:13:41 +0100 |
parents | 46291ec605a0 |
children | 947bf231acbb |
comparison
equal
deleted
inserted
replaced
127:2e395db595e2 | 128:44b97930570c |
---|---|
82 return true; | 82 return true; |
83 } | 83 } |
84 } | 84 } |
85 return false; | 85 return false; |
86 } | 86 } |
87 | |
88 public String getString(String sectionName, String key, String defaultValue) { | |
89 String value = getSection(sectionName).get(key); | |
90 return value == null ? defaultValue : value; | |
91 } | |
87 | 92 |
88 // TODO handle %include and %unset directives | 93 // TODO handle %include and %unset directives |
89 // TODO "" and lists | 94 // TODO "" and lists |
90 private void read(File f) { | 95 private void read(File f) { |
91 if (f == null || !f.canRead()) { | 96 if (f == null || !f.canRead()) { |