using php function to get ready the diff dialog
we will reuse it on details changeset view