Allowed the hook to work with multiple revisions at the same time. I can now get a list of all files changed accross revisions and update them once to the HEAD revision