revision.c: introduce --min-parents and --max-parents options