Mercurial > public > mercurial-scm > python-hglib
comparison hglib/client.py @ 133:b6f601ba7f3c
style: fixup whitespace
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 30 Sep 2014 11:23:15 -0500 |
parents | 9ecb271600fc |
children | 1b47146a4a2c |
comparison
equal
deleted
inserted
replaced
132:9ecb271600fc | 133:b6f601ba7f3c |
---|---|
53 if encoding: | 53 if encoding: |
54 self._env['HGENCODING'] = encoding | 54 self._env['HGENCODING'] = encoding |
55 | 55 |
56 self.server = None | 56 self.server = None |
57 self._version = None | 57 self._version = None |
58 #include the hidden changesets if True | 58 # include the hidden changesets if True |
59 self.hidden = None | 59 self.hidden = None |
60 | 60 |
61 if connect: | 61 if connect: |
62 self.open() | 62 self.open() |
63 | 63 |
1551 | 1551 |
1552 | 1552 |
1553 out = self.rawcommand(args, eh=eh) | 1553 out = self.rawcommand(args, eh=eh) |
1554 | 1554 |
1555 m = re.search(r'^(\d+).+, (\d+).+, (\d+).+, (\d+)', out, re.MULTILINE) | 1555 m = re.search(r'^(\d+).+, (\d+).+, (\d+).+, (\d+)', out, re.MULTILINE) |
1556 return tuple(map(int,list(m.groups()))) | 1556 return tuple(map(int, list(m.groups()))) |
1557 | 1557 |
1558 @property | 1558 @property |
1559 def version(self): | 1559 def version(self): |
1560 """ | 1560 """ |
1561 Return hg version that runs the command server as a 4 fielded tuple: major, | 1561 Return hg version that runs the command server as a 4 fielded tuple: major, |