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 44929
- From: Aleksandr Mezin <mezin.alexander@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 2/3] vcs_info/cvs: set vcs_comm[basedir] in VCS_INFO_detect_cvs
- Date: Mon, 25 Nov 2019 13:31:27 +0600
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kLaLYKy20HBBWdWZXMr6lwMCQ0m4fybIXYozh04aJ5s=; b=a9GgcMWJ2DiAHL60hwq0k/j+Cy7NpZLUXawHafYoX3/IyZnWUrgf4Yj+zNxQ00TLXQ NnO5m8Y4mkoIrtd1+0wT5i78+Rwj4uzqzApJQ2XOSuzWIFcFytG1TYoqbM2Jm2bEmseF PRiIe1B85Y1o6ylE3rtLWj/MDrd6Y1cP1SsSVKb9jsGjg2UXGJ73aBwEGWsMDpcDKtLi i9rFqH4r3z/Oea5wagpMGhsYfsXoXUZYbKZbPlEWUB/CWjKoKw62e0n3E2DlBgKG41Vo HyhUuKxj0riGOSPGstPPY2wkmw9xGKuvUCpLsUrdBagCNmAZ8Vjfxs+ovkzolxMmY8ZU 94Jg==
- In-reply-to: <20191125043525.lcxm532gi6hb7n53@tarpaulin.shahaf.local2>
- 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> <20191125043525.lcxm532gi6hb7n53@tarpaulin.shahaf.local2>
On Mon, Nov 25, 2019 at 10:35 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> 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.
Also I probably shouldn't have moved the code in the first place. If
the current directory has `CVS/Repository` in it, it means that the
directory is controlled by CVS, and maybe we shouldn't consider .git
from the parent directory (even when the parent directory also has
`CVS/Repository` in it). Though it's questionable.
Example:
~/cvs-dir/CVS/Repository
~/cvs-dir/git-repo/.git
~/cvs-dir/git-repo/CVS/Repository
~/cvs-dir/git-repo/cvs-subdir/CVS/Repository
I'm not sure what vcs_info should output for ~/cvs-dir/git-repo/cvs-subdir/
>
> Cheers,
>
> Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author