Page MenuHomePhabricator

Fix an issue where entering the same Owners path for two repositories would incorrectly de-dupe the path
ClosedPublic

Authored by epriestley on May 1 2018, 1:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 6 2026, 1:43 AM
Unknown Object (File)
Mar 13 2026, 7:38 AM
Unknown Object (File)
Mar 8 2026, 8:29 AM
Unknown Object (File)
Mar 5 2026, 9:29 AM
Unknown Object (File)
Mar 3 2026, 8:55 AM
Unknown Object (File)
Feb 26 2026, 12:29 AM
Unknown Object (File)
Feb 25 2026, 9:42 PM
Unknown Object (File)
Feb 10 2026, 2:20 PM
Subscribers
None

Details

Summary

Ref T13130. See https://discourse.phabricator-community.org/t/unable-to-create-owners-package-with-same-path-in-multiple-repositories/1400/1.

When you edit paths in Owners, we deduplicate similar paths, like /x/y and /x/y/. However, this logic currently only examines the paths, and incorrectly deduplicates the same path in different repositories.

Instead, consider the repository before deduplicating.

Test Plan
  • Edited an Owners package and added the path "/" in two different repositories.
  • Before: only one surived the edit.
  • After: both survived.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable