Mercurial > python-hglib
comparison hglib/__init__.py @ 134:1b47146a4a2c 1.4
style: fix long lines
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 30 Sep 2014 12:48:04 -0500 |
parents | a4fcece7dd8e |
children | c1b966866ed7 |
comparison
equal
deleted
inserted
replaced
133:b6f601ba7f3c | 134:1b47146a4a2c |
---|---|
1 import client, subprocess, util, error | 1 import client, subprocess, util, error |
2 | 2 |
3 HGPATH = 'hg' | 3 HGPATH = 'hg' |
4 | 4 |
5 def open(path=None, encoding=None, configs=None): | 5 def open(path=None, encoding=None, configs=None): |
6 ''' starts a cmdserver for the given path (or for a repository found in the | 6 '''starts a cmdserver for the given path (or for a repository found |
7 cwd). HGENCODING is set to the given encoding. configs is a list of key, value, | 7 in the cwd). HGENCODING is set to the given encoding. configs is a |
8 similar to those passed to hg --config. ''' | 8 list of key, value, similar to those passed to hg --config. |
9 ''' | |
9 return client.hgclient(path, encoding, configs) | 10 return client.hgclient(path, encoding, configs) |
10 | 11 |
11 def init(dest=None, ssh=None, remotecmd=None, insecure=False, | 12 def init(dest=None, ssh=None, remotecmd=None, insecure=False, |
12 encoding=None, configs=None): | 13 encoding=None, configs=None): |
13 args = util.cmdbuilder('init', dest, e=ssh, remotecmd=remotecmd, | 14 args = util.cmdbuilder('init', dest, e=ssh, remotecmd=remotecmd, |