Page MenuHomePhabricator

Add an administrative `bin/repository mark-imported` command
ClosedPublic

Authored by epriestley on Nov 6 2013, 3:03 PM.
Tags
None
Referenced Files
F19506648: D7514.id16940.diff
Fri, Jan 9, 4:50 PM
F19219179: D7514.id16940.diff
Dec 17 2025, 9:40 AM
F19195664: D7514.id16940.diff
Dec 16 2025, 12:47 PM
F18974752: D7514.diff
Nov 15 2025, 11:57 PM
F18819951: D7514.id.diff
Oct 22 2025, 11:23 AM
F18783775: D7514.id16949.diff
Oct 13 2025, 9:28 AM
F18780913: D7514.diff
Oct 12 2025, 8:34 PM
F18772967: D7514.diff
Oct 9 2025, 6:01 AM
Subscribers

Details

Summary

Ref T4068. In some cases like that one, I anticipate a repository not fully importing when a handful of random commits are broken. In the long run we should just deal with that properly, but in the meantime provide an administrative escape hatch so you can mark the repository as imported and get it running normally.

The major reason to do this is that Herald, Feed, Harbormaster, etc., won't activate until a repository is "imported".

Test Plan
  • Tried to mark an imported repository as imported, got an "already imported" message.
  • Same for not-imported.
  • Marked a repository not-imported.
  • Marked a repository imported.
  • Marked a repository not-imported, then waited for the daemons to mark it imported again automatically.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped