Mercurial > piecrust2
comparison foodtruck/scm/mercurial.py @ 600:c37307a72f79
admin: Fix constructor for Mercurial SCM.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 24 Jan 2016 10:41:36 -0800 |
parents | 3cec8634209a |
children | a1697b1066bc |
comparison
equal
deleted
inserted
replaced
599:d7baac1d01e6 | 600:c37307a72f79 |
---|---|
15 assert isinstance(strs, bytes) | 15 assert isinstance(strs, bytes) |
16 return strs.decode('utf8') | 16 return strs.decode('utf8') |
17 | 17 |
18 | 18 |
19 class MercurialSourceControl(SourceControl): | 19 class MercurialSourceControl(SourceControl): |
20 def __init__(self, root_dir): | 20 def __init__(self, root_dir, cfg): |
21 super(MercurialSourceControl, self).__init__(root_dir) | 21 super(MercurialSourceControl, self).__init__(root_dir, cfg) |
22 self.hg = 'hg' | 22 self.hg = cfg.get('exe', 'hg') |
23 | 23 |
24 def getStatus(self): | 24 def getStatus(self): |
25 res = RepoStatus() | 25 res = RepoStatus() |
26 st_out = self._run('status') | 26 st_out = self._run('status') |
27 for line in st_out.split('\n'): | 27 for line in st_out.split('\n'): |