Added extension point to mercurials compare function