Re: [PATCH v3] nmbug: Translate to Python
authorW. Trevor King <wking@tremily.us>
Wed, 6 Aug 2014 23:28:05 +0000 (16:28 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:08 +0000 (10:04 -0800)
2b/18652492848cf9b17735202a811d0a5c51c29e [new file with mode: 0644]

diff --git a/2b/18652492848cf9b17735202a811d0a5c51c29e b/2b/18652492848cf9b17735202a811d0a5c51c29e
new file mode 100644 (file)
index 0000000..2b7fcd3
--- /dev/null
@@ -0,0 +1,156 @@
+Return-Path: <wking@tremily.us>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 60D38431FBD\r
+       for <notmuch@notmuchmail.org>; Wed,  6 Aug 2014 16:28:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id UqlTlqyuUAVe for <notmuch@notmuchmail.org>;\r
+       Wed,  6 Aug 2014 16:28:07 -0700 (PDT)\r
+Received: from qmta11.emeryville.ca.mail.comcast.net\r
+       (qmta11.emeryville.ca.mail.comcast.net [76.96.27.211])\r
+       by olra.theworths.org (Postfix) with ESMTP id 798C2431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  6 Aug 2014 16:28:07 -0700 (PDT)\r
+Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89])\r
+       by qmta11.emeryville.ca.mail.comcast.net with comcast\r
+       id bbB41o0021vN32cABbU6ck; Wed, 06 Aug 2014 23:28:06 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+       by omta22.emeryville.ca.mail.comcast.net with comcast\r
+       id bbU51o00X152l3L8ibU6Nx; Wed, 06 Aug 2014 23:28:06 +0000\r
+Received: by odin.tremily.us (Postfix, from userid 1000)\r
+       id B018B12BD996; Wed,  6 Aug 2014 16:28:05 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
+       t=1407367685; bh=2zJpkForLkaRNGvIYgOAjqLbqyaQoqHVVNo8zTTmMkU=;\r
+       h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
+       b=Hqmt+mt2BIkCkJTBuRJKkydD7PWyL0lvX2Bh6WB66p/ocmdsMSylC7xg4K9nMiue3\r
+       AJq5tsiyCLfNYjVsQDnDWp10q2+nzY0LsIcvctjalNRdDXew2yVX3WFXrWv3E6bDiV\r
+       Rm4aMA6Cf9FnYXpCP7s0S2IEnVJlBgx4J9eu9eNA=\r
+Date: Wed, 6 Aug 2014 16:28:05 -0700\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: David Bremner <bremner@debian.org>\r
+Subject: Re: [PATCH v3] nmbug: Translate to Python\r
+Message-ID: <20140806232805.GI31313@odin.tremily.us>\r
+References:\r
+ <84447a0ed48412e1587761d560d18cb5affd4f66.1405897133.git.wking@tremily.us>\r
+       <878un36bd5.fsf@maritornes.cs.unb.ca>   <874mxqe7tx.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="JIpyCmsTxyPLrmrM"\r
+Content-Disposition: inline\r
+In-Reply-To: <874mxqe7tx.fsf@maritornes.cs.unb.ca>\r
+OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
+       url=http://tremily.us/pubkey.txt\r
+User-Agent: Mutt/1.5.23 (2014-03-12)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+       s=q20140121; t=1407367686;\r
+       bh=+Kp7Awa4ywgQJh92/nkH4TabvHHKOKJ5W+1mn1OpyGY=;\r
+       h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
+       MIME-Version:Content-Type;\r
+       b=RX0Ndu/zp0DNxTmcbMCl3MM/1EgqYVs7Id6EgvmbuF/R086wSHpkzV8wH1Fx9FVnY\r
+       eOSPY2kCv0u5+PAgBYyJA4XFmg01v/wFg7iu5EpH78wqsJ7E6M+iw3FgpZ/BsnNd/G\r
+       wSzZ0Kqs2Dr/vwq4zLjiwGPT/RuqomLqh6b4PgI8rYYWmwN9p53qjSbPTfAe0ky8jF\r
+       mioX9S2MMIs+H8/FrJ6AKb/uskkNH6a5kVD7jUw9xhlN5954jzCRf8B3ND/MflMcvR\r
+       8BLfLDavdEfvaiCOX4LdwIaHsxmvNBLUEpEtO1VdNOdQJsbpMUXQiuzTErlHoLXg3r\r
+       Miqf7TzKZf1tQ==\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 06 Aug 2014 23:28:11 -0000\r
+\r
+\r
+--JIpyCmsTxyPLrmrM\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, Aug 05, 2014 at 10:16:10PM -0300, David Bremner wrote:\r
+> David Bremner writes:\r
+> > I did notice that merging was noticably noisier than I remembered.=20\r
+>=20\r
+> rejected pushes also seem noisier than before; I'm not sure the=20\r
+> python backtrace adds anything here.\r
+>=20\r
+> To nmbug@nmbug.tethera.net:nmbug-tags\r
+>  ! [rejected]        master -> master (fetch first)\r
+> error: failed to push some refs to 'nmbug@nmbug.tethera.net:nmbug-tags'\r
+> hint: Updates were rejected because the remote contains work that you do\r
+> hint: not have locally. This is usually caused by another repository push=\r
+ing\r
+> hint: to the same ref. You may want to first integrate the remote changes\r
+> hint: (e.g., 'git pull ...') before pushing again.\r
+> hint: See the 'Note about fast-forwards' in 'git push --help' for details.\r
+> Traceback (most recent call last):\r
+>   File "/home/bremner/config/scripts/nmbug", line 766, in <module>\r
+>     args.func(**kwargs)\r
+>   File "/home/bremner/config/scripts/nmbug", line 463, in push\r
+>     _git(args=3Dargs, wait=3DTrue)\r
+>   File "/home/bremner/config/scripts/nmbug", line 210, in _git\r
+>     return _spawn(args=3Dargs, **kwargs)\r
+>   File "/home/bremner/config/scripts/nmbug", line 193, in _spawn\r
+>     args=3Dargs, status=3Dstatus, stdout=3Dstdout, stderr=3Dstderr)\r
+> __main__.SubprocessError: ['git', '--git-dir', '/home/bremner/.nmbug', 'p=\r
+ush'] exited with 1\r
+\r
+I can drop the backtrace and just print the SubprocessError, and just\r
+show the traceback if the logging is set to =E2=80=98debug=E2=80=99.  If th=\r
+at sounds\r
+reasonable, I'll to it in v4.\r
+\r
+I'm not sure what the current nmbug shows in this case.  Do you want\r
+me to prune the =E2=80=98hint=E2=80=99 lines too?  I usually find those to =\r
+be pretty\r
+informative, but the're not directly applicable to folks using nmbug\r
+who prefer to ignore the underlying Git layer.  Ideally, we'd\r
+translate them to apply to nmbug (=E2=80=9C=E2=80=A6(e.g. nmbug pull ...) b=\r
+efore\r
+pushing=E2=80=A6=E2=80=9D), but I can't think of a maintainable way to do t=\r
+hat.\r
+\r
+Cheers,\r
+Trevor\r
+\r
+--=20\r
+This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
+For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
+\r
+--JIpyCmsTxyPLrmrM\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQIcBAEBAgAGBQJT4roEAAoJEG8/JgBt8ol8vj8P/iB9b6J1eg/ePgiY7uvtGPXd\r
+c+pzUaBrhyaEHDBdK33ajEZlz+b4V1A/cZ+mKQvYr4JaB/hutTnWI1vOWjUL10wd\r
+8zEYH120jRWnK8kdto+jAd4IipKuLp5DbgiagxvHEpf4O2wbWq19dqmL9T+3zNCd\r
+kNbiR6azJyRrxGe7J0rEpd0VV1P94pEmwdi7a/bfCZnJXUz7cDaI6tTzPH+AxkLi\r
+ksyay5vNnioEEdsuWrtcEMNgulHmeTq5f5fVBlYX+8jQ3DZHH9fyMTrY6b1nB+T1\r
+RSr70TlT0zvLVfnVLcSnUgHOgQ0YP02Wzpala4hdeusdDDtDbJ6kFoY6QEMYGpJa\r
+Jy5mhaG30o6O5aPY6PNtqhyfs892MoxORqavIJjQWBbK+T5hsKe2/Ckw1rxve6HU\r
+Cf+wGBdAQVGPH/Sa3vlHlemnzZzBQLOAbMCJxpRocrL4UXlCd1DZaEM92mTxvGR+\r
+0Mr2FD4/FYWO0vw2pd7KabR69QrzvQBKrSM7l2O3ZxE8jyhLbm2QQebqAj0Bx+Ch\r
+akzKTJAM/sUpUFIdNOOHii0H4a0eN/amaGY03mjTFRpjweHoDWdZRb1iodcnP+qJ\r
+TWvdyVgA5qHrupQcFCHYZ7f1ATLmjDemnVRY/Yj9DjF2pEUfhbb7Dtv4drXhmt5H\r
+1fQmJVCxpXstmTx+xJBT\r
+=zonE\r
+-----END PGP SIGNATURE-----\r
+\r
+--JIpyCmsTxyPLrmrM--\r