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
Apr 9 2025, 10:06 AM
F15480276: D19771.id.diff
Apr 8 2025, 1:00 PM
F15479177: D19771.id47230.diff
Apr 8 2025, 5:25 AM
F15476011: D19771.diff
Apr 7 2025, 2:31 AM
F15465167: D19771.id.diff
Apr 2 2025, 3:23 PM
F15462544: D19771.diff
Apr 1 2025, 3:51 PM
F15431010: D19771.id47297.diff
Mar 24 2025, 10:07 AM
F15419867: D19771.diff
Mar 21 2025, 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