grep: search all commits in allfiles mode

Authored by sangeet259.

Description

grep: search all commits in allfiles mode

All the commits are added to the 'wanted' set when allfiles mode is enabled.

Differential Revision: https://phab.mercurial-scm.org/D4157