From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28835 invoked from network); 25 Oct 2020 20:04:26 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2020 20:04:26 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603656266; b=ErjEIyM0icRTylLET05k2+aec63i5Y1xu12PwNRk+Md2z+YEmfTnGXO/Vu2QE2J4SQBqO0QTaO y/DLOLujNhbWuar9nBnChBbDizR/DVU2UpMPJxMfEsD1NVZNqBg68b+Xf60ByjUAhMEtr6w+Xx JcdpYXDjtj6+J9V2J8SkBBN90I/IbNiTRtHHNymugcQPgZfMwfJM0rzVUW2Mz+umLnBnW+UFBA vtSsEv7p4TPotw/3bJ5qAKDIGUPn05VSRTXF9+JA6DpAYC+kvmHKxO+h8jpN8wdrxHgrUbyWlg WJTEpDzsuNXkj5MxwekxrVRDxpngProuyqgtjV1++ZlTjQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1603656266; bh=VV0c+QYUBJiHQOJ9hzp6gU/O+F3FK+Yi8pt8rkTfARI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Subject:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=bIBwyYxet6Sl8tUNk8XNg97MvxfZFVvDxrBLfeORl8ZiCsGlPmNWCdrRiDqm6iQhql9P0W2c71 9rednbpMcyQhqvMKjV8LZ8Mami5AoqkQ1BLPT8DFQpKLkrqdMavI2PGrxWhnME051b8ig9yewt v+pcppzpSl0AW3+n1BrRblZjD+mJlprpJnGUBD/fdqdz6/PSiWkcRvfXq10jKi0RSAystYmNGC UJYnfHQ8VrgP6pWsgPJSt3AF3KS2MJ8VcO0MU4IPw3TcgX3z/+7k5wp2xhnWZYsonBuD4tcZuc xPpfUVInFPmZ43Hxw9zxLU7tDVM1yy/azIIXI9wCgXIyww==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lLu/aNSvERK7MlOK4HX17MxTH6hYXiWYuCdSdeURm/A=; b=G5UL5ySrexPJKXeTwAJJ/BFKxb 7LVwIcby6bNtTZCZBHvwDd+RBLSGUP4N/eBEIqfD5LgveVpIrp64/b1vd5irpvmyfhAIs9Q6o+EC4 5Q/NpwHzpDrvT2tdaWWJ6SZhkjWIWm6bTafnBTb1YykEqIu9w1jMxtNqdkU9UszllxGxCaH+FVPTv NdS8zYVV4lG5iD7YCqqADeqS823w+3S4oJu1X0wurDEVnCskZI8f+ldb2FHSrQdEApGorxC26X/nK tYu3F2MecC37vw0yEjhq2oeoqzSUGyMWWSrUmBa7Mj2zmD6HGiSYivLION1y8nmM74mj6tKmPZ1V5 QcG+8eaw==; Received: from authenticated user by zero.zsh.org with local id 1kWmFd-0009XO-5z; Sun, 25 Oct 2020 20:04:25 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38461) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kWmFR-0009N3-IF; Sun, 25 Oct 2020 20:04:14 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id F0CAB5C00AE; Sun, 25 Oct 2020 16:04:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 25 Oct 2020 16:04:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm1; bh=lLu/aNSvERK7MlOK4HX17MxTH6 hYXiWYuCdSdeURm/A=; b=JrFPkrrNjMfmJs+GG6tqGPbXvK3cKJUhDid6/39WsY hGWdul6uKM/cx3B9F7WGAB5sCsWtkhY/OJEE3Uraib/yKUzxFRpwQ9YUxOodGN3Z SVYyf2lnKGHTmFrch+sTTqUrG81byb1tEhDD4dUL0xHdLHtcRwz2YFJL9sx3rWrV KGlPkBvwXRY4/ZeppMukzhOPXyveCfhb3n0lUUBZJb4T/+HgeRqyOUyPsPzjCZ4Y slZmOHAUy97buOvxr8iK3eL50A/xKJWqv2iX1NGt0UKWzzHSNXcURRMBtvTRKLVu hnMRnTzvhsHxf0TcBpN7+VR0Mf8B2q72FNl79BG/JfAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=lLu/aNSvERK7MlOK4HX17MxTH6hYXiWYuCdSdeURm /A=; b=IwYCj9TNtRYqp+y7BLS3l5/zK52UkUGMMRXO6LxvfeHujKRvDYV5AWoha 9RcqixwOiS+o0NAM7Kf2rMbZ/K7nyHGXZ57GQZRH0dFlkSmIzXJ4dg1a5HJnsDJ0 V/MnNhiqEtTsgq0jHRUtKBJgFPE+gP5JFL0YjL/tXTk6+iIbSe68KJ4YMa6zELuj HrC7paHyONyE9xlUl8bSTZ1ShGO8Jg24mQDXA96pSupvo+20xziVhpFKUGYXXH3v 9NjZpU6/o5Awp25aDhVRDWSxYH5q6UsBerjCIirKkI/oW2/A++ANtG0QanhSrlQ8 BfOS75fgq+ij2baB5OAPEI2C2umEg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeeggddufeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkjghfofggtgfgsehtqh dttdertdejnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpefhtdetfeehveeutd ehuddtieefgeettedtjedtffehudeiieejleetteekudetheenucfkphepuddtledrieei rddufedrvddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-109-66-13-227.red.bezeqint.net [109.66.13.227]) by mail.messagingengine.com (Postfix) with ESMTPA id 9125A306467E for ; Sun, 25 Oct 2020 16:04:12 -0400 (EDT) Received: from tarpaulin.shahaf.local2 (localhost [IPv6:::1]) by tarpaulin.shahaf.local2 (Postfix) with ESMTP id 4CK87H0NcGzw4 for ; Sun, 25 Oct 2020 20:04:11 +0000 (UTC) Date: Sun, 25 Oct 2020 20:04:09 +0000 From: Daniel Shahaf To: Subject: Re: [PATCH] vcs_info: add 'find-deepest' zstyle Message-ID: <20201025200409.405e8d9c@tarpaulin.shahaf.local2> In-Reply-To: References: <20201023083444.1565608-1-mezin.alexander@gmail.com> <20201023234855.5a0c6290@tarpaulin.shahaf.local2> <87mu0clbw2.fsf@ft.bewatermyfriend.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Seq: 47498 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Bart Schaefer wrote on Fri, 23 Oct 2020 17:56 -0700: > On Fri, Oct 23, 2020 at 5:13 PM Frank Terbeck wrote: > > > > I, for one, vastly prefer the current behaviour. I don't think nesting > > repositories is all that common. Even when I was using many different > > systems, never did I have a need for that. =20 >=20 > At my $WORK we have two related but distinct code bases, an older > version of the platform that is maintained for several longtime > customers and the modern version used by all new customers. The old > code base is in CVS, the new code base (which incorporates a large > subset of the old) has been moved to git. Occasionally there are > bugfixes that need to be ported from one to the other within that > shared subset. Maintaining nested repositories has been useful for > this situation, but it's difficult to get vcs_info to select the > correct one. >=20 > That said, I'm not sure "deepest" reflects the right behavior either. > I'd pretty much need to select the repository that differs from the > current working file, whichever one that is at the time. At the risk of veering off-topic, how about running vcs_info twice (with different argv[1] values for zstyle purposes) and have it print _both_ the CVS info and git info every prompt. Something like: precmd() { vcs_info print -rPC1 -- $vcs_info_msg_0_ local tmp=3D$vcs_info_msg_0_ vcs_info foo if [[ -n $vcs_info_msg_0_ && $vcs_info_msg_0_ !=3D $tmp ]]; then print -r= PC1 -- $vcs_info_msg_0_; fi } zstyle ':vcs_info:*:foo:*' enable =E2=80=A6 Cheers, Daniel