wp-cli/wp-cli — pull request #1077 by trepmal (2014-03-20 06:11:00+00:00)
Title: Fail early when search-replace terms are the same

When doing a search-replace with identical and values, the script will do all the work even though there will be no change. It would be nice to fail early with a warning, and recommend use of the `--dry-run` flag, since the search-replace could take a while on a large database.

I'm sure there are others like me who have the habit of doing test-replacements this way from using tools that don't have a have test/dry-run mode.