Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgRepoConfig.java @ 349:bba9f52cacf3
Empty line is valid way to enable extension
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 24 Nov 2011 04:33:42 +0100 |
parents | 467fd379b653 |
children | 091666b87f62 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepoConfig.java Thu Nov 24 02:57:03 2011 +0100 +++ b/src/org/tmatesoft/hg/repo/HgRepoConfig.java Thu Nov 24 04:33:42 2011 +0100 @@ -211,7 +211,8 @@ public boolean isEnabled(String extensionName) { String value = config.getSection(section).get(extensionName); - return value != null && value.length() > 0 && '!' != value.charAt(0) ; + // empty line, just "extension =" is valid way to enable it + return value != null && (value.length() == 0 || '!' != value.charAt(0)); } } }