Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/3] vcs_info/cvs: set vcs_comm[basedir] in VCS_INFO_detect_cvs
- X-seq: zsh-workers 44928
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Aleksandr Mezin <mezin.alexander@xxxxxxxxx>
- Subject: Re: [PATCH 2/3] vcs_info/cvs: set vcs_comm[basedir] in VCS_INFO_detect_cvs
- Date: Mon, 25 Nov 2019 04:35:25 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=fm1; bh=Tgn asbfkncr8KTlBz4dPSpxmZjUJWJpcoxRdvXkCOg0=; b=WOjGF8bJ1CpLAqWIY6v uCGLmqswjymzKYGBLOUj0CX+93RY0qPPM26IqrFYUQhN6XEbR+hDuaOV8aYiBTQ5 bHx5/Bvxnl9/WaFBhMaDWHb6ROPKWkLUpi8LJyZACMESMtNSukfY5eeGLKiIpt4d fwJ14ah4HKN4WsimK1uLgxqHrWuGC094keIiyeZhFqs3qspEPJxYSKccxLacI/u/ Fs5aZo3BsTKazIxfVYMs0qCFpbO+mfq1jj8Yi2TS4jmWdwSPn7nu/Poa/lQNxhdy xtuSqqSuxEziMBfnhg1paQriGRiVYL1UkcYco4kaqIQkC2NuzA+zBPqYQLQoMA5C xeA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Tgnasb fkncr8KTlBz4dPSpxmZjUJWJpcoxRdvXkCOg0=; b=CGPv3oObYPTksCvwgN2Vkb kam7lAq/cmdOIKq7UC+omwMGX9qZYtg3CP2YhFaoiq7KD0Wf4dOquz5+BDghF7sM e1teMkz6b8Hf+16KPBs1a0iTwI1XmtNK1JgBpB7m6AMvZt0iTxO6zuzGJeK5shQA 1m4+WMG1paCP29F18WWGXzXvDpxxTOmbumcjZNXYlFom3V3NLReQvsY4rhkUpVB+ 3lSyvoynjWx3LwKGG6nES7r/LluS3t4fUfPnmwmhpC4qgkn+HDDDDRk+jTrCLb9E OsIE012OEuswL9r1QHJStBXev1MUHfrOfCJ4D1lZS8ulep+vBygR7RRbIbbkUGPA ==
- In-reply-to: <20191123221443.279556-3-mezin.alexander@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20191123221443.279556-1-mezin.alexander@gmail.com> <20191123221443.279556-3-mezin.alexander@gmail.com>
Aleksandr Mezin wrote on Sun, Nov 24, 2019 at 04:14:42 +0600:
> +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_cvs
> @@ -5,11 +5,7 @@
> -cvsbase="."
> -while [[ -d "${cvsbase}/../CVS" ]]; do
> - cvsbase="${cvsbase}/.."
> -done
> +++ b/Functions/VCS_Info/Backends/VCS_INFO_detect_cvs
> @@ -7,5 +7,12 @@ setopt localoptions NO_shwordsplit
> +local cvsbase="."
> +while [[ -d "${cvsbase}/../CVS" ]]; do
> + cvsbase="${cvsbase}/.."
> +done
I know you just moved this code around, but I'd like to point out that it
causes an infinite loop when /CVS exists.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author