Mercurial > hgsubversion
comparison hgsubversion/svnwrap/common.py @ 1524:c5de1adc3092
svnwrap: clean up whitespace in common
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 30 Aug 2017 23:57:42 -0400 |
parents | 8c7dae2e0f54 |
children | 3476b7a945fb |
comparison
equal
deleted
inserted
replaced
1523:83b28c179d19 | 1524:c5de1adc3092 |
---|---|
106 if fnmatch.fnmatchcase(os.path.basename(file), pattern): | 106 if fnmatch.fnmatchcase(os.path.basename(file), pattern): |
107 properties.update(parse_autoprops(prop_list)) | 107 properties.update(parse_autoprops(prop_list)) |
108 return properties | 108 return properties |
109 | 109 |
110 def autoprops_enabled(self): | 110 def autoprops_enabled(self): |
111 return (self.config.has_option('miscellany', 'enable-auto-props') | 111 return (self.config.has_option('miscellany', 'enable-auto-props') |
112 and self.config.getboolean( 'miscellany', 'enable-auto-props') | 112 and self.config.getboolean( 'miscellany', 'enable-auto-props') |
113 and self.config.has_section('auto-props')) | 113 and self.config.has_section('auto-props')) |
114 | 114 |
115 | 115 |
116 def config_file_path(config_dir): | 116 def config_file_path(config_dir): |
117 if config_dir == None: | 117 if config_dir == None: |
118 global _svn_config_dir | 118 global _svn_config_dir |
167 return ''.join(self._blocks) | 167 return ''.join(self._blocks) |
168 | 168 |
169 def close(self): | 169 def close(self): |
170 if self._closing: | 170 if self._closing: |
171 del self._blocks | 171 del self._blocks |
172 |