From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5797 invoked by alias); 29 Mar 2014 09:59:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32507 Received: (qmail 20848 invoked from network); 29 Mar 2014 09:58:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id :mime-version:content-type; s=mesmtp; bh=8YtEeqmzB44uoAg9VnxXkrQ GzeU=; b=cP+O2GENdrZla0GTZJ4PtesJPVz1FKmXhpu7WCKw4DCkOvf5izMrcrK NjpblRt/F0gM+mOvbkE6YxjwJu9gQeTWfUQe4cKcW7S2FpB5V0vW+V8BYw0nVbHs FMgm7imtVL868/CgmJ0qmqwET5tumIVDWcndtTMC+/D0GPm0mwhc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:subject:message-id :mime-version:content-type; s=smtpout; bh=8YtEeqmzB44uoAg9VnxXkr QGzeU=; b=DuiMTOM5xUtoyKmKsj0+XH+7DizvrKG7cRI5QaNYd3yp+p63TbaBmU 6GEwi0pgqpozhSVY8npGblPy3nWrtDWKJjeh2L5XbpmMy0s5XUi6OeojnkVh+f0c AoQgL247fJ7g5aneYWYp1hEel24kBK4RKhy3YxaQXAZlnbKmVRkag= X-Sasl-enc: Y9/ok2phixL4/sbvdZgKa9ynik8+hFFSXsuE94iN5Qwd 1396086476 Date: Sat, 29 Mar 2014 09:47:50 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] vcs_info bzr: Fix typo in constant name Message-ID: <20140329094750.GA11569@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) --- A quick patch to fix a typo in a string constant. The code isn't wrong (all references to the constant spell it the same way), but it's fragile: someone is liable to spell "lightweight" _correctly_ when extending the code --- which would be a misspelling of the actual constant. I haven't tested this, but I think it's fine. Daniel (Now I wonder if there's a zsh plugin for proper enum-typed variables...) Functions/VCS_Info/Backends/VCS_INFO_get_data_bzr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_bzr b/Functions/VCS_Info/Backends/VCS_INFO_get_data_bzr index cae1a3b..6e96ece 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_bzr +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_bzr @@ -24,7 +24,7 @@ VCS_INFO_bzr_get_info_restricted() { # we are forbidden from fetching info on bound branch from remote repository bzrinfo=( $(${vcs_comm[cmd]} revno) ${bzrbase:t} ) if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" && \ - [[ ! $bzr_type == lightweigth ]] + [[ ! $bzr_type == lightweight ]] then VCS_INFO_bzr_get_changes fi @@ -46,7 +46,7 @@ VCS_INFO_bzr_get_changes() { } if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "use-simple" ; then - # simple parsing will fail to fetch information from lightweigth checkouts + # simple parsing will fail to fetch information from lightweight checkouts bzrbase=${vcs_comm[basedir]} bzrinfo[2]=${bzrbase:t} if [[ -f ${bzrbase}/.bzr/branch/last-revision ]] ; then @@ -74,7 +74,7 @@ else bzr_type=checkout bzrbase=${bzr_info[repository_checkout_root]} ;; ('Lightweight checkout'*) - bzr_type=lightweigth + bzr_type=lightweight bzrbase=${bzr_info[light_checkout_root]} ;; (*) bzr_type=standalone -- 1.7.10.4