diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ConfigFile.java	Wed Feb 16 18:42:10 2011 +0100
+++ b/src/org/tmatesoft/hg/internal/ConfigFile.java	Wed Feb 16 20:13:41 2011 +0100
@@ -84,6 +84,11 @@
 		}
 		return false;
 	}
+	
+	public String getString(String sectionName, String key, String defaultValue) {
+		String value = getSection(sectionName).get(key);
+		return value == null ? defaultValue : value;
+	}
 
 	// TODO handle %include and %unset directives
 	// TODO "" and lists