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
Unknown Object (File)
Thu, Apr 25, 1:00 AM
Unknown Object (File)
Fri, Apr 19, 4:50 PM
Unknown Object (File)
Fri, Apr 19, 9:12 AM
Unknown Object (File)
Thu, Apr 18, 9:34 AM
Unknown Object (File)
Sat, Apr 13, 2:49 PM
Unknown Object (File)
Fri, Apr 12, 9:49 PM
Unknown Object (File)
Thu, Apr 11, 8:45 AM
Unknown Object (File)
Wed, Apr 3, 11:22 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
Branch
branchquery1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21077
Build 28641: Run Core Tests
Build 28640: arc lint + arc unit