comparison hglib/client.py @ 132:9ecb271600fc

client: fix passing multiple config settings
author Julien Cristau <julien.cristau@logilab.fr>
date Tue, 30 Sep 2014 12:00:34 +0200
parents 53387d1e620b
children b6f601ba7f3c
comparison
equal deleted inserted replaced
131:a3373bf28ccb 132:9ecb271600fc
45 self._args = [hglib.HGPATH, 'serve', '--cmdserver', 'pipe', 45 self._args = [hglib.HGPATH, 'serve', '--cmdserver', 'pipe',
46 '--config', 'ui.interactive=True'] 46 '--config', 'ui.interactive=True']
47 if path: 47 if path:
48 self._args += ['-R', path] 48 self._args += ['-R', path]
49 if configs: 49 if configs:
50 self._args += ['--config'] + configs 50 for config in configs:
51 self._args += ['--config', config]
51 self._env = {'HGPLAIN': '1'} 52 self._env = {'HGPLAIN': '1'}
52 if encoding: 53 if encoding:
53 self._env['HGENCODING'] = encoding 54 self._env['HGENCODING'] = encoding
54 55
55 self.server = None 56 self.server = None