Move visit date helper from hg loader to core
There will be a related patch for the hg and the bzr loaders