From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WAvdKKweiGLnqQAAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 01:05:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QHvRJ6weiGJyYQAAG6o9tA (envelope-from ) for ; Sat, 21 May 2022 01:05:16 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 29B4C1044A for ; Sat, 21 May 2022 01:05:16 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 358195F775; Fri, 20 May 2022 23:05:13 +0000 (UTC) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mail.notmuchmail.org (Postfix) with ESMTPS id C4A4B5F6DA for ; Fri, 20 May 2022 23:05:10 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 71130320092E; Fri, 20 May 2022 19:05:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 20 May 2022 19:05:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1653087907; x=1653174307; bh=jW9ebspLpj nmv9ZJPfF+ikIwa3Ggc754CDYGN9uYnXs=; b=PkLbpUcmpxdem110TfUCrTbNpD 11VhWuSeXEGkp0S926r6dY0XJMqSKGBbqX+7WJyw/aLVlLDJ2TeGbABlscxpFWkQ 4yaf0xoXmmDhlvkgvKBgowDdnKQw908LGTKezRmtMhFrSKjc+ZU4F0QB00vGRsc0 Fhx8NOdZB8cSRT6w9GJEvsA6Fpuy4G+djT4JBZnPkWVJx9k00aNg6dZ85cnXA50A kOVrdaAVBoV/bjmDkInNRW6HWHfhMythVwuLc4fcf+7WOIQJrmnijs7NNxb9JcAk 8I2Ql4Wj/N2j0EQLT6tFfRmHih9Ju35m0KD0Sv5n9J/NES2Sv4dX9MULRHOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653087907; x=1653174307; bh=jW9ebspLpjnmv9ZJPfF+ikIwa3Gg c754CDYGN9uYnXs=; b=rYimzemdlmaW9UsyBI1TjQDM29AenaZkotYVNNurLwU3 drz4wqRKQK5FAQMbEP+aEZ6XGmT3LmT/ff1/yYYI7lz/wbDgNvjtitKeJS67Rlfo /pM0VnNHqHSyiZXgTQg49O+Gid/Onm4KtGz2heMux3co6xl5yfIwrQ0Yw/Wo1uEU Ough7z3rE1RwGpv683dOmdB8+TXZoB9V/t37seZT2YkHAvNZJRttWwnK2cmpzlIB QAz7Ny0YkmEF0WNUxKOZBe0fAkUeV238ZezRrFt7bBk8ROiEdJJGwvva34bCQJGu 0RBiICO6tZanW4xXU9OoLGIbbqAQP4Qqvoe3kJA+xQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrieehgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeelgeeggfdvieejvdfhudfggeetgfekkeeuieeljeejhedugeeg feetgefhueffkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 May 2022 19:05:07 -0400 (EDT) Received: by athena.silentflame.com (Postfix, from userid 1000) id AA75B1B59AA; Fri, 20 May 2022 23:05:06 +0000 (UTC) From: Sean Whitton To: David Bremner , notmuch@notmuchmail.org Subject: Re: WIP: promote nmbug to user sync tool In-Reply-To: <87o8083nay.fsf@tethera.net> References: <20220423133848.3852688-1-david@tethera.net> <87tuaacw7q.fsf@athena.silentflame.com> <87o8083nay.fsf@tethera.net> User-Agent: Notmuch/0.36 Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Fri, 20 May 2022 16:05:06 -0700 Message-ID: <875ylzzty5.fsf@athena.silentflame.com> MIME-Version: 1.0 Message-ID-Hash: HHLB2ASUEPVSMYOMVRH36WCOFZYKW6Z4 X-Message-ID-Hash: HHLB2ASUEPVSMYOMVRH36WCOFZYKW6Z4 X-MailFrom: spwhitton@spwhitton.name X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653087916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Fe9VBADgUAkUCHeZ6iZRv4efBWLmZxPhfi7EmtlvDkg=; b=LXnipBBaCVE0phuYrVV15z8801/WvHozteU5LZf8kSebqaSB0cZTNYNz2SaYNIJwEwFCud vyv0cCaMAJ13qw2W4/+NPu7KwjTHv6tLmR+MMrIXmpVsqLgdU+KmZdSpk9V8RerdvR8cWf xpJKstwVvuRmHAisdYT54bskcBi6zIebZHen4ohGFaG82q59kHOzxAstsioAmJHOXJa69B drwi/VppLaJcZa22rVM+NZtYR+ROXOpx8ZHX645oVbhByuadnSCigYu5czk0eJgoo9yJEW bKhwQygPqNLJ0vuyc5sgqhSFCgycvgNaH/DzwWllH15gGnT8PeglYZBi07xTNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653087916; a=rsa-sha256; cv=none; b=T6FkhiRJnv/q8YDB6dfeoZ7OZW19AWqp+osm4M69bLiPk71AIVKq2oGxb+KCmuAVQ/JHqE i9g5wO29573fwHDGIU8MvhltLzOnmA/ihLtP1svi2oWcGCt0qrBg6JAWGeWwSWrfcO7EQQ fnrwgW7fqx0T2sCLaaqBuuGBGVSlClzbvz4BxMPLPEyQXcX7KgLr1xLQsc2CTsNwn9LQc9 EKnX5vp5CxxXMREReIB0vn5CQR8a1o+Hs0OuPwGo0NdXQAF9/c/VBKHnsBR7LnFUUIkWrz OdPZsFzv/bz/p7yjsbSLeJV3flvRo1oyMjSPcQgKwMy3hK3qRfQtaLLyWLFSFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=spwhitton.name header.s=fm3 header.b=PkLbpUcm; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=rYimzemd; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=spwhitton.name header.s=fm3 header.b=PkLbpUcm; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=rYimzemd; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 29B4C1044A X-Spam-Score: 1.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: x5buIvhlGbFg Hello, On Sat 07 May 2022 at 09:01pm -03, David Bremner wrote: > Sean Whitton writes: > >> Just looking at my current usage, there are two cases where I've wrapped >> nmbug in some additional myrepos scripting. The first is a status >> command: >> >> status = >> nmbug-spw status | grep -v "^U\s" || true >> # `nmbug status` does not catch committed but unpushed changes >> git --no-pager log --branches \ >> --not --remotes \ >> --simplify-by-decoration --decorate --oneline >> >> Possibly notmuch-git could learn how to do this? > > Perhaps. I think I would prefer something a bit more concise like a > count of unpushed commits. Do you tend to actually have meaningful > commit messages? I don't. I just want output if there are unpushed changes and no output if not. A count sounds good to me. > Personally I would be more worried about checkout (e.g. after init) > wiping out my notmuch database, since an errant commit can always be > reverted. Both cases seem to be covered by your heuristic. Perhaps we > could just count the size of the update, and insist on a --force option > if it is too large. I think you're right. It makes sense to build in safety features only for the case of accidentally wiping out the db. Either instead or in addition to something size-based, how about requiring --force if there do not exist any tags with the prefix in the notmuch database already? The size thing is brittle; in my scripting attempts, I've encountered several annoying edge cases. > For what it's worth, you can already call > > notmuch git -C $HOME/lib/nmbug-spw -p spw:: ... > > if that is more convenient. > > The defaults have already changed in my latest working branch so the > default repo is under $XDG_DATA_HOME/notmuch/$NOTMUCH_PROFILE/git, and > the default prefix is ''. But re-reading this, I see see we polled two > people and got two answers for what a reasonable default prefix is, so a > configuration item is definitely needed for prefix. Probably it is also > reasonable to have one for repo location. Coolio. -- Sean Whitton