Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
348:a0864b2892cd | 349:bba9f52cacf3 |
---|---|
209 super("extensions"); | 209 super("extensions"); |
210 } | 210 } |
211 | 211 |
212 public boolean isEnabled(String extensionName) { | 212 public boolean isEnabled(String extensionName) { |
213 String value = config.getSection(section).get(extensionName); | 213 String value = config.getSection(section).get(extensionName); |
214 return value != null && value.length() > 0 && '!' != value.charAt(0) ; | 214 // empty line, just "extension =" is valid way to enable it |
215 return value != null && (value.length() == 0 || '!' != value.charAt(0)); | |
215 } | 216 } |
216 } | 217 } |
217 } | 218 } |