On disk tag storage format

2013-02-20 Thread David Bremner
p://notmuchmail.org/pipermail/notmuch/attachments/20130220/351bd585/attachment.py>

[Patch v2 4/4] nmbug: allow empty prefix

2013-02-20 Thread da...@tethera.net
From: David Bremner Current code does not distinguish between an empty string in the NMBPREFIX environment variable and the variable being undefined. This makes it impossible to define an empty prefix, if, e.g. somebody wants to dump all of their tags with nmbug. ---

[Patch v2 3/4] nmbug: replace hard-coded magic hash with git-hash-object

2013-02-20 Thread da...@tethera.net
From: David Bremner This is at least easier to understand than the magic hash. It may also be a bit more robust, although it is hard to imagine these numbers changing without many other changes in git. --- devel/nmbug/nmbug |6 +++--- 1 file changed, 3 insertions(+), 3

[Patch v2 2/4] nmbug: use 'notmuch tag --batch'

2013-02-20 Thread da...@tethera.net
From: David Bremner This should be more robust with respect to tags with whitespace and and other special characters. It also (hopefully) fixes a remaining bug handling message-ids with whitespace. It should also be noticeably faster for large sets of changes since it does

[Patch v2 1/4] nmbug: use dump --format=batch-tag

2013-02-20 Thread da...@tethera.net
From: David Bremner This should make nmbug tolerate tags with whitespace and other special characters it. At the moment this relies on _not_ passing calls to notmuch tag through the shell, which is a documented feature of perl's system function. --- devel/nmbug/nmbug | 27

Update for nmbug, round 2

2013-02-20 Thread da...@tethera.net
This obsoletes id:1360374019-20988-1-git-send-email-david at tethera.net This less broken than the last version ;). I've used these patches for a few days without ill effects. The first two patches use batch-tagging, which should have some speedup. The includes fixes for the issue about

[Patch v2 1/4] nmbug: use dump --format=batch-tag

2013-02-20 Thread david
From: David Bremner brem...@debian.org This should make nmbug tolerate tags with whitespace and other special characters it. At the moment this relies on _not_ passing calls to notmuch tag through the shell, which is a documented feature of perl's system function. --- devel/nmbug/nmbug | 27

[Patch v2 2/4] nmbug: use 'notmuch tag --batch'

2013-02-20 Thread david
From: David Bremner brem...@debian.org This should be more robust with respect to tags with whitespace and and other special characters. It also (hopefully) fixes a remaining bug handling message-ids with whitespace. It should also be noticeably faster for large sets of changes since it does one

[Patch v2 3/4] nmbug: replace hard-coded magic hash with git-hash-object

2013-02-20 Thread david
From: David Bremner brem...@debian.org This is at least easier to understand than the magic hash. It may also be a bit more robust, although it is hard to imagine these numbers changing without many other changes in git. --- devel/nmbug/nmbug |6 +++--- 1 file changed, 3 insertions(+), 3

[Patch v2 4/4] nmbug: allow empty prefix

2013-02-20 Thread david
From: David Bremner brem...@debian.org Current code does not distinguish between an empty string in the NMBPREFIX environment variable and the variable being undefined. This makes it impossible to define an empty prefix, if, e.g. somebody wants to dump all of their tags with nmbug. ---

Update for nmbug, round 2

2013-02-20 Thread david
This obsoletes id:1360374019-20988-1-git-send-email-da...@tethera.net This less broken than the last version ;). I've used these patches for a few days without ill effects. The first two patches use batch-tagging, which should have some speedup. The includes fixes for the issue about

Re: On disk tag storage format

2013-02-20 Thread David Bremner
David Bremner da...@tethera.net writes: Austin outlined on IRC a way of representing tags on disk as hardlinks to messages. In order to make the discussion more concrete, I wrote a prototype in python to dump the notmuch database to this format. On my 250k messages, this creates 40k new