Page MenuHomePhabricator

Correct the behavior of "bin/repository discover --repair"
ClosedPublic

Authored by epriestley on Jan 22 2021, 8:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 7:01 AM
Unknown Object (File)
Nov 19 2024, 3:48 AM
Unknown Object (File)
Nov 15 2024, 3:13 PM
Unknown Object (File)
Nov 11 2024, 9:55 AM
Unknown Object (File)
Nov 7 2024, 3:04 AM
Unknown Object (File)
Oct 13 2024, 9:50 PM
Unknown Object (File)
Oct 2 2024, 6:27 AM
Unknown Object (File)
Oct 1 2024, 9:20 PM
Subscribers
None

Details

Summary

Ref T13591. Since D8781, this flag does not function correctly in Git and Mercurial repositories, since ref discovery pre-fills the cache.

Move the "don't look at the database" behavior the flag enables into the cache lookup. D8781 should have been slightly more aggressive and done this, it was just overlooked.

Test Plan
  • Ran bin/repository discover --help and read the updated help text.
  • Ran bin/repository discover --repair in a fully-discovered Git repository.
    • Before: no effect.
    • After: full rediscovery.

Diff Detail

Repository
rP Phabricator
Branch
repair1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25018
Build 34518: Run Core Tests
Build 34517: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jan 23 2021, 3:51 AM
This revision was automatically updated to reflect the committed changes.