Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C3E3A4196ED for ; Sat, 6 Feb 2010 15:40:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1XNYatZAPw+K for ; Sat, 6 Feb 2010 15:40:49 -0800 (PST) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by olra.theworths.org (Postfix) with ESMTP id ED1954196EE for ; Sat, 6 Feb 2010 15:40:48 -0800 (PST) Received: from bas6-hamilton14-1176216207.dsl.bell.ca ([70.27.162.143] helo=rocinante.cs.unb.ca) by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NduGd-0000xR-FI; Sat, 06 Feb 2010 19:40:47 -0400 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.71) (envelope-from ) id 1NduDz-0004ji-HU; Sat, 06 Feb 2010 19:38:03 -0400 From: David Bremner To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87ock3cf8j.fsf@yoom.home.cworth.org> References: <87zl60xjl7.wl%bremner@pivot.cs.unb.ca> <87my1z97un.wl%bremner@pivot.cs.unb.ca> <87ock3cf8j.fsf@yoom.home.cworth.org> Date: Sat, 06 Feb 2010 19:38:03 -0400 Message-ID: <87iqaaue90.fsf@rocinante.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender-Verified: bremner@pivot.cs.unb.ca Subject: Re: [notmuch] hack to retag a directory X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2010 23:40:51 -0000 On Fri, 05 Feb 2010 17:41:48 -0800, Carl Worth wrote: [talking about gitmuch, a simple wrapper around notmuch dump && git commit] > > And it's interesting that this script might be just good enough for the > synchronization needs of some people. It's not integrated, and might > require manual fixup of any resulting git conflicts, but it might be > handy for some. > I have to say that merge conflicts are not very much fun. I tend to do a certain amount of oh, take all the changes from the server. I wonder if the approach that someone else mentioned of keeping a file tags/message-id with the appropriate tags in it might make merging less painful. > The biggest problem I see is that if I were to read some messages > locally, and then run "gitmuch restore" then this would wipe out the > local changes I had made. So we'll definitely want a more integrated > solution to eliminate the chance of problems like this. Yeah, the footgun potential is definitely there. > One easy answer is to just make "notmuch restore" do nothing for > messages where the existing tags are the same as the tags mentioned in > the input file. I just pushed a change to implement this, (along with > new tests for "notmuch dump" and "notmuch restore" of course). Heh, I think I later posted a patch to do that as well. d