comparison hglib/__init__.py @ 2:5fa34c3ac9a0

turn hglib into a module and expose open (previously connect) in its __init__.py so common usage will now be: import hglib hglib.open(...) also rename hglib.py to client.py
author Idan Kamara <idankk86@gmail.com>
date Sat, 23 Jul 2011 22:55:36 +0300
parents
children f4cc7ff53cf8
comparison
equal deleted inserted replaced
1:bbd294291dd8 2:5fa34c3ac9a0
1 from client import hgclient
2
3 HGPATH = 'hg'
4
5 def open(path=None, encoding=None, configs=None):
6 ''' starts a cmdserver for the given path (or for a repository found in the
7 cwd). HGENCODING is set to the given encoding. configs is a list of key, value,
8 similar to those passed to hg --config. '''
9 return hgclient(path, encoding, configs)