The goal of this patchset is to factor out step 1 of dirstate.walk into a separate function. I need the function for an extension that reimplements the other parts of walk more efficiently.