Page MenuHomePhabricator

Replace magical "branch" behavior in "diffusion.branchquery" with an explicit "patterns"
ClosedPublic

Authored by epriestley on Nov 2 2018, 3:18 AM.
Tags
None
Referenced Files
F15483122: D19771.id47297.diff
Wed, Apr 9, 10:06 AM
F15480276: D19771.id.diff
Tue, Apr 8, 1:00 PM
F15479177: D19771.id47230.diff
Tue, Apr 8, 5:25 AM
F15476011: D19771.diff
Mon, Apr 7, 2:31 AM
F15465167: D19771.id.diff
Wed, Apr 2, 3:23 PM
F15462544: D19771.diff
Tue, Apr 1, 3:51 PM
F15431010: D19771.id47297.diff
Mon, Mar 24, 10:07 AM
F15419867: D19771.diff
Fri, Mar 21, 9:32 AM
Subscribers
None

Details

Summary

See PHI958. Ref T13210. Previously, see PHI720.

The use case for the magic in PHI720 involves multiple patterns, and no parameter can be passed to branch that will result in multiple patterns being passed to git.

Replace the implicit magic with an explicit patterns parameter.

This whole thing is a bit shaky but probably isn't hurting anything.

Test Plan
  • Ran query with no patterns.
  • Ran query with invalid patterns, got readable error.
  • Ran query with various valid patterns (plain branch name, globs with "?" and "*"), got sensible results.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable