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
F18706157: D19420.diff
Sun, Sep 28, 3:36 PM
F18704622: D19420.id46456.diff
Sun, Sep 28, 8:18 AM
F18703221: D19420.id.diff
Sun, Sep 28, 3:18 AM
F18700974: D19420.diff
Sat, Sep 27, 4:38 PM
F18699826: D19420.id46461.diff
Sat, Sep 27, 1:46 PM
F18652885: D19420.diff
Sun, Sep 21, 10:00 AM
F18547643: D19420.id46461.diff
Sep 8 2025, 6:43 AM
F18530707: D19420.diff
Sep 7 2025, 2:49 AM
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