comparison hglib/__init__.py @ 92:07efbd3bd09a

hglib: change init to not open a command server instance automatically
author Idan Kamara <idankk86@gmail.com>
date Thu, 22 Dec 2011 19:12:47 +0200
parents 15485fa4b35e
children a4fcece7dd8e
comparison
equal deleted inserted replaced
91:0383fc37102b 92:07efbd3bd09a
17 proc = util.popen(args) 17 proc = util.popen(args)
18 out, err = proc.communicate() 18 out, err = proc.communicate()
19 if proc.returncode: 19 if proc.returncode:
20 raise error.CommandError(args, proc.returncode, out, err) 20 raise error.CommandError(args, proc.returncode, out, err)
21 21
22 return open(dest, encoding, configs) 22 return client.hgclient(dest, encoding, configs, connect=False)