hggtk/commit: use internal dialog on empty tortoisehg.commit
authorTK Soh <teekaysoh@yahoo.com>
Tue, 01 Jul 2008 09:29:14 +0100
changeset 1172 8ff7c4091ee8
parent 1171 d7bebeef8dd1
child 1173 67cb458efa2f
hggtk/commit: use internal dialog on empty tortoisehg.commit this allows user to override system setting more easily, i.e. without having to spell out 'internal' explicitly.
hggtk/commit.py
--- a/hggtk/commit.py	Sun Jun 29 03:31:41 2008 +0100
+++ b/hggtk/commit.py	Tue Jul 01 09:29:14 2008 +0100
@@ -311,7 +311,7 @@
         files = [cwd]
 
     ct = repo.ui.config('tortoisehg', 'commit', 'internal')
-    if ct != 'internal':
+    if ct not in ['', 'internal']:
         from hglib import thgdispatch
         args = ['--repository', root, ct]
         try: