From b90a93691041e750650e0e32a3310a591f66cbef Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 7 Aug 2013 12:26:59 -0400 Subject: [PATCH] Rename Humbug-based variables/paths in svn plugin. (imported from commit 43a9282ad86546fb59e91c36e97a595e51789d07) --- integrations/svn/post-commit | 10 +++++----- integrations/svn/zulip_svn_config.py | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/integrations/svn/post-commit b/integrations/svn/post-commit index de77c03..f790711 100755 --- a/integrations/svn/post-commit +++ b/integrations/svn/post-commit @@ -37,14 +37,14 @@ import pysvn sys.path.insert(0, os.path.dirname(__file__)) import zulip_svn_config as config -if config.HUMBUG_API_PATH is not None: - sys.path.append(config.HUMBUG_API_PATH) +if config.ZULIP_API_PATH is not None: + sys.path.append(config.ZULIP_API_PATH) import zulip client = zulip.Client( - email=config.HUMBUG_USER, - site=config.HUMBUG_SITE, - api_key=config.HUMBUG_API_KEY) + email=config.ZULIP_USER, + site=config.ZULIP_SITE, + api_key=config.ZULIP_API_KEY) svn = pysvn.Client() path, rev = sys.argv[1:] diff --git a/integrations/svn/zulip_svn_config.py b/integrations/svn/zulip_svn_config.py index f08b352..38bdec9 100644 --- a/integrations/svn/zulip_svn_config.py +++ b/integrations/svn/zulip_svn_config.py @@ -23,8 +23,8 @@ # Change these values to configure authentication for the plugin -HUMBUG_USER = "svn-bot@example.com" -HUMBUG_API_KEY = "0123456789abcdef0123456789abcdef" +ZULIP_USER = "svn-bot@example.com" +ZULIP_API_KEY = "0123456789abcdef0123456789abcdef" # commit_notice_destination() lets you customize where commit notices # are sent to with the full power of a Python function. @@ -51,7 +51,7 @@ def commit_notice_destination(path, commit): ## If properly installed, the Zulip API should be in your import ## path, but if not, set a custom path below -HUMBUG_API_PATH = None +ZULIP_API_PATH = None # This should not need to change unless you have a custom Zulip subdomain. -HUMBUG_SITE = "https://api.zulip.com" +ZULIP_SITE = "https://api.zulip.com"