Steps to reproduce
- Create a new empty hosted Mercurial repository
- Locally, create a text file Text.txt containing the text Roses are red.
- Commit this file.
- Update the text to Violets are blue..
- Commit this file.
- Push both commits to the Phabricator hosted repository.
- Go into Diffusion, select Browse repository and then Show search.
- Look for the pattern Roses and hit Grep file content.
- Search result brings up a match Roses are red found inside file Text.txt.
This is odd to me. Indeed, this text file does not contain anymore the word Roses. It should not come up as a match. It is also very confusing because when you click on the link in the search result list, you are directed to the latest version of the file which does not contain the pattern at the highlighted line. I would suggest only looking for matches in the current (latest) version of all files. Or give the user the option to do this. Or indicate in the search results the correct version of the file where the hits were found.
Versions
phabricator ee92a3f25a4172003b6768879219a88de9f03873 (Sat, Apr 23)
arcanist 789aff85dbf96248c903376c7d6704ada31f294b (Sat, Apr 23)
phutil 1ea8d2ad6daa9fd64298db8cebfd1db0b9a1e678 (Sat, Apr 23)
libcore 33b3d50c2ee6dcdb773c308f6d9a1be50f4ec9ce (Tue, Apr 26)
services 9dfc0d95fef805a642a0dbaea82928fd43450455 (Mon, Apr 25)