comparison hglib/client.py @ 181:cdb5a320d2bf

client: wrap long lines at 80 chars
author Yuya Nishihara <yuya@tcha.org>
date Wed, 19 Oct 2016 00:03:44 +0900
parents ff6efc1ab9e4
children 9062a6b935ad
comparison
equal deleted inserted replaced
180:ff6efc1ab9e4 181:cdb5a320d2bf
637 I=include, X=exclude, amend=amend) 637 I=include, X=exclude, amend=amend)
638 out = self.rawcommand(args) 638 out = self.rawcommand(args)
639 m = re.search(b(r'^committed changeset (\d+):([0-9a-f]+)'), out, 639 m = re.search(b(r'^committed changeset (\d+):([0-9a-f]+)'), out,
640 re.MULTILINE) 640 re.MULTILINE)
641 if not m: 641 if not m:
642 raise ValueError('revision and node not found in hg output: %r' % out) 642 raise ValueError('revision and node not found in hg output: %r'
643 % out)
643 rev, node = m.groups() 644 rev, node = m.groups()
644 return int(rev), node 645 return int(rev), node
645 646
646 def config(self, names=[], untrusted=False, showsource=False): 647 def config(self, names=[], untrusted=False, showsource=False):
647 """Return a list of (section, key, value) config settings from all 648 """Return a list of (section, key, value) config settings from all