dovecot-2.0: is-tagged.py: Don't fail if Mercurial isn't available.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Mar 27 05:10:10 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/84ffb38839b9
changeset: 11012:84ffb38839b9
user: Pascal Volk <user at localhost.localdomain.org>
date: Sat Mar 27 03:08:26 2010 +0000
description:
is-tagged.py: Don't fail if Mercurial isn't available.
diffstat:
is-tagged.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 110ef59372cd -r 84ffb38839b9 is-tagged.py
--- a/is-tagged.py Sat Mar 27 05:05:12 2010 +0200
+++ b/is-tagged.py Sat Mar 27 03:08:26 2010 +0000
@@ -17,8 +17,10 @@
"""
import re
import sys
-
-from mercurial import hg, ui
+try:
+ from mercurial import hg, ui
+except ImportError: # no Mercurial at all
+ sys.exit(0)
try:
from mercurial.error import Abort, RepoError
except ImportError:
More information about the dovecot-cvs
mailing list