Mercurial > jhg
changeset 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 | a0864b2892cd |
children | 33eaed1ad130 |
files | src/org/tmatesoft/hg/repo/HgRepoConfig.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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)); } } }