 The two oil-and-gas companies, shale producers that operate in the Permian Basin of Texas and New Mexico, are discussing an all-stock deal that could be completed by the end of the month, according to people familiar with the matter. 