Page MenuHomePhabricator

Fix an issue where Diffusion could fatal if the default branch was deleted
ClosedPublic

Authored by epriestley on Nov 30 2017, 8:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 8 2026, 11:09 AM
Unknown Object (File)
Apr 7 2026, 8:13 PM
Unknown Object (File)
Feb 17 2026, 7:29 PM
Unknown Object (File)
Dec 16 2025, 12:44 AM
Unknown Object (File)
Nov 28 2025, 11:50 PM
Unknown Object (File)
Nov 20 2025, 7:59 PM
Unknown Object (File)
Nov 4 2025, 3:06 AM
Unknown Object (File)
Nov 3 2025, 5:41 AM
Subscribers
None

Details

Summary

See PHI234. In T12931 we improved the behavior of Diffusion when a repository's default branch is set to a branch that does not exist, but in T11823 the way refcursors work changed, and we can now get a cursor (just with no positions) back for a deleted branch. When we did, we didn't handle things gracefully.

Test Plan
  • Set default branch to a deleted branch, saw nice error instead of fatal.
  • Set default branch to a nonexistent branch which never existed, saw nice error.
  • Set default branch to existing "master", saw repository normally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable