Hi,

here is the patch that makes qct gracefully ignore missing settings in
config file.

-- 
Best regards,
Andrey Skvortsov
# HG changeset patch
# User Andrey Skvortsov <andrej.skvort...@gmail.com>
# Date 1464616629 -10800
#      Mon May 30 16:57:09 2016 +0300
# Node ID dc45740c1cbf1b372fc3f416ad1fec7e148f1a12
# Parent  c5f6a035039b8f9d53b8c06777e15cba5eefe5d4
qctlib/vcs/hg: make run qct when qct.signoff property is missing in hg config file

diff -r c5f6a035039b -r dc45740c1cbf qctlib/vcs/hg.py
--- a/qctlib/vcs/hg.py	Tue Jan 25 08:24:34 2011 -0600
+++ b/qctlib/vcs/hg.py	Mon May 30 16:57:09 2016 +0300
@@ -86,8 +86,12 @@
         # To enable an auto-matic sign-off message:
         # [qct]
         # signoff = Sign-Off: Steve Borho
-        self.signOff = self.hgcmd(['showconfig', 'qct.signoff'])[0]
-
+        try:
+            self.signOff = self.hgcmd(['showconfig', 'qct.signoff'])[0]
+        except ProgramError:
+            self.signOff = None
+            pass
+        
         # Determine if this repository has any applied Mercurial Queue patches
         (output, err) = self.hgcmd(['qheader'], okresults=[0,1,255])
         if err and "unknown command" in err:

Attachment: signature.asc
Description: PGP signature

Reply via email to