[PATCH] create .mailmap file (for git shortlog/blame)
[notmuch-archives.git] / ce / a03620d5c5f875a971d8ea39584de805fe0e5e
1 Return-Path: <tomi.ollila@nixu.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 63C75431FD0\r
6         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 05:08:56 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id wHeAEMRQHbKk for <notmuch@notmuchmail.org>;\r
16         Sun, 18 Dec 2011 05:08:55 -0800 (PST)\r
17 Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 51302431FB6\r
21         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 05:08:55 -0800 (PST)\r
22 Received: from pps.filterd (mail-gw3 [127.0.0.1])\r
23         by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pBID8oTr031961;\r
24         Sun, 18 Dec 2011 15:08:50 +0200\r
25 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
26         by mail-gw3.nixu.fi with ESMTP id 114cs0u674-1\r
27         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
28         Sun, 18 Dec 2011 15:08:49 +0200\r
29 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
30         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
31         pBID8mSW023249; Sun, 18 Dec 2011 15:08:48 +0200\r
32 From: Tomi Ollila <tomi.ollila@iki.fi>\r
33 To: Thomas Schwinge <thomas@schwinge.name>, notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH] Repeatability when copying a whole directory into a new\r
35         one.\r
36 In-Reply-To: <1317338806-7414-1-git-send-email-thomas@schwinge.name>\r
37 References: <1317338806-7414-1-git-send-email-thomas@schwinge.name>\r
38 User-Agent: Notmuch/0.10.2+93~g631d290 (http://notmuchmail.org) Emacs/23.3.1\r
39         (i686-pc-linux-gnu)\r
40 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
41         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
42         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
43 Date: Sun, 18 Dec 2011 15:08:47 +0200\r
44 Message-ID: <yf68vmajacg.fsf@taco2.nixu.fi>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=utf-8\r
47 Content-Transfer-Encoding: quoted-printable\r
48 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,\r
49  1.0.211,       0.0.0000        definitions=2011-12-18_02:2011-12-16, 2011-12-18,\r
50         1970-01-01 signatures=0\r
51 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0\r
52         ipscore=0 suspectscore=0\r
53         phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0\r
54         reason=mlx\r
55         scancount=1 engine=6.0.2-1012030000 definitions=main-1112180092\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Sun, 18 Dec 2011 13:08:56 -0000\r
69 \r
70 On Fri, 30 Sep 2011 01:26:46 +0200, Thomas Schwinge <thomas@schwinge.name> =\r
71 wrote:\r
72 > This new test currently fails -- but it shouldn't.\r
73 > ---\r
74 >=20\r
75 > Hi!\r
76 >=20\r
77 > I found this while manually copying directories and running notmuch new.\r
78 >=20\r
79 > Am I just too sleepy at this time, or is it another DB vs. directory\r
80 > mtime issue?\r
81 \r
82 I played a bit with this... making directories early and touching and...\r
83 \r
84 ... and always got the same output as below.\r
85 \r
86 >      BROKEN Repeatability when copying a whole directory into a new one\r
87 >             --- new.18.expected     2011-09-29 23:23:39.000000000 +0000\r
88 >             +++ new.18.output       2011-09-29 23:23:39.000000000 +0000\r
89 >             @@ -1,2 +1 @@\r
90 >             -Processed 51 total files in almost no time.\r
91 >              No new mail.\r
92 \r
93 Then, finally, the following line changes\r
94 \r
95 +output1=3D$(notmuch new; notmuch search --format=3Dfiles '*')\r
96 ...\r
97 +output2=3D$(notmuch new; notmuch search --format=3Dfiles '*')\r
98 \r
99 we see this\r
100 \r
101  BROKEN Repeatability when copying a whole directory into a new one\r
102         --- new.18.expected     2011-12-18 13:01:47.000000000 +0000\r
103         +++ new.18.output       2011-12-18 13:01:47.000000000 +0000\r
104         @@ -1,104 +1,52 @@\r
105         -Processed 51 total files in almost no time.\r
106          No new mail.\r
107          /home/too/vc/ext/notmuch/test/tmp.new/mail/cur/50:2,\r
108         -/home/too/vc/ext/notmuch/test/tmp.new/mail/2nd/cur/50:2,\r
109          /home/too/vc/ext/notmuch/test/tmp.new/mail/cur/49:2,\r
110         -/home/too/vc/ext/notmuch/test/tmp.new/mail/2nd/cur/49:2,\r
111          /home/too/vc/ext/notmuch/test/tmp.new/mail/cur/48:2,\r
112         -/home/too/vc/ext/notmuch/test/tmp.new/mail/2nd/cur/48:2,\r
113 ...\r
114 \r
115 \r
116 We see that after second time the files are not added to the message\r
117 (again).=20\r
118 \r
119 I cannot see that the issue is with directory mtimes, but perhaps that\r
120 the directory .../2nd/... is not forgotten...\r
121 \r
122 ... but whatever the reason will eventually be I suggest to make\r
123 this change to the test -- it provides more concrete information\r
124 to anyone who will be looking fix for this case.\r
125 \r
126 >=20\r
127 >=20\r
128 > Gr=C3=BC=C3=9Fe,\r
129 >  Thomas\r
130 \r
131 Tomi\r
132 \r
133 >=20\r
134 > ---\r
135 >  test/new |   21 +++++++++++++++++++++\r
136 >  1 files changed, 21 insertions(+), 0 deletions(-)\r
137 >=20\r
138 > diff --git a/test/new b/test/new\r
139 > index 49f390d..0afb04c 100755\r
140 > --- a/test/new\r
141 > +++ b/test/new\r
142 > @@ -153,4 +153,25 @@ rm -rf "${MAIL_DIR}"/two\r
143 >  output=3D$(NOTMUCH_NEW)\r
144 >  test_expect_equal "$output" "No new mail. Removed 3 messages."\r
145 >=20=20\r
146 > +\r
147 > +test_begin_subtest 'Repeatability when copying a whole directory into a =\r
148 new one'\r
149 > +\r
150 > +add_email_corpus\r
151 > +\r
152 > +mkdir "$MAIL_DIR"/2nd\r
153 > +cp -a "$MAIL_DIR"/cur "$MAIL_DIR"/2nd/\r
154 > +output1=3D$(notmuch new)\r
155 > +\r
156 > +rm -rf "$MAIL_DIR"/2nd\r
157 > +notmuch new > /dev/null\r
158 > +\r
159 > +# This was quite enjoyable.  Let's do it again.\r
160 > +mkdir "$MAIL_DIR"/2nd\r
161 > +cp -a "$MAIL_DIR"/cur "$MAIL_DIR"/2nd/\r
162 > +output2=3D$(notmuch new)\r
163 > +\r
164 > +test_subtest_known_broken\r
165 > +test_expect_equal "$output2" "$output1"\r
166 > +\r
167 > +\r
168 >  test_done\r
169 > --=20\r
170 > 1.7.5.4\r
171 >=20\r