unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 88cd1bf548ebb567881176df52bf8ac1709fefdb 483 bytes (raw)
name: test/term-report.cc 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#include <iostream>
#include <cstdlib>
#include <xapian.h>

int main(int argc, char **argv) {

    if (argc < 2) {
	std::cerr << "usage: term-report xapian-dir" << std::endl;
	exit(1);
    }

    Xapian::Database db(argv[1]);
    for (Xapian::docid id(1); id < db.get_lastdocid(); id++) {
	std::cout << id;
	for (Xapian::TermIterator iter = db.termlist_begin(id);
	     iter != db.termlist_end(id);
	     iter++) {
	    std::cout << " " << *iter;
	}
	std::cout << std::endl;
    }
}

debug log:

solving 88cd1bf5 ...
found 88cd1bf5 in https://yhetil.org/notmuch/20180727083720.19909-1-david@tethera.net/ ||
	https://yhetil.org/notmuch/20180730224555.26047-16-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/20180727083720.19909-1-david@tethera.net/
diff --git a/test/term-report.cc b/test/term-report.cc
new file mode 100644
index 00000000..88cd1bf5

Checking patch test/term-report.cc...
Applied patch test/term-report.cc cleanly.

skipping https://yhetil.org/notmuch/20180730224555.26047-16-david@tethera.net/ for 88cd1bf5
index at:
100644 88cd1bf548ebb567881176df52bf8ac1709fefdb	test/term-report.cc

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).