changeset 600:c37307a72f79

admin: Fix constructor for Mercurial SCM.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 24 Jan 2016 10:41:36 -0800
parents d7baac1d01e6
children effbc78b5528
files foodtruck/scm/mercurial.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/foodtruck/scm/mercurial.py	Sun Jan 24 10:40:55 2016 -0800
+++ b/foodtruck/scm/mercurial.py	Sun Jan 24 10:41:36 2016 -0800
@@ -17,9 +17,9 @@
 
 
 class MercurialSourceControl(SourceControl):
-    def __init__(self, root_dir):
-        super(MercurialSourceControl, self).__init__(root_dir)
-        self.hg = 'hg'
+    def __init__(self, root_dir, cfg):
+        super(MercurialSourceControl, self).__init__(root_dir, cfg)
+        self.hg = cfg.get('exe', 'hg')
 
     def getStatus(self):
         res = RepoStatus()