Page MenuHomePhabricator

Return no results from `grep` repository queries on error
ClosedPublic

Authored by epriestley on Jan 5 2016, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 10, 3:47 PM
Unknown Object (File)
Wed, Apr 10, 9:33 AM
Unknown Object (File)
Wed, Apr 10, 9:33 AM
Unknown Object (File)
Mar 11 2024, 10:49 PM
Unknown Object (File)
Mar 8 2024, 12:50 PM
Unknown Object (File)
Mar 8 2024, 12:50 PM
Unknown Object (File)
Mar 7 2024, 4:48 AM
Unknown Object (File)
Mar 5 2024, 5:22 PM
Subscribers
None

Details

Summary

Fixes T7852. Although 1 could also indicate other kinds of problems, assume it means "no results".

Test Plan

Searched for nonsense strings in Git and Mercurial. Searched for valid strings in Git and Mercurial.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Return no results from `grep` repository queries on error.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
  • Also fix an issue with paging filename search in Git.
src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
30–31

The second issue is that pages 2+ of git results weren't returned correctly because the skipped results were discarded twice. This is one of two places where earlier pages of results were being discarded.

90–92

This is the second place where earlier pages of results were being discarded.

chad edited edge metadata.
This revision is now accepted and ready to land.Jan 5 2016, 6:17 PM
This revision was automatically updated to reflect the committed changes.