1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-05 20:31:03 +01:00
phorge-phorge/src/applications/diffusion
epriestley ec89c7d63e Add an "Unreachable" flag for commits and revive them during discovery
Summary:
Ref T9028. This is the easy part of dealing with deleted commits:

  - Add a flag for unreachable commits (nothing sets this flag yet).
  - Ignore unreachable commits when querying for known commits during discovery, so we pretend they do not exist.
  - When recording a commit, try just reviving an existing unreachable commit first. If that works, bail out.

Test Plan:
  - Artificially marked a commit as unreachable with raw SQL.
  - Verified it said "deleted: unreachable" in the UI.
  - Ran `repository discover --trace --verbose`.
  - Saw the discovery process ignore the commit when filling the cache.
  - Saw the discovery process revive the commit instead of trying to record it again.
  - Web UI now shows the commit as normal.
  - Running `repository discover` again doesn't make any further changes.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9028

Differential Revision: https://secure.phabricator.com/D16130
2016-06-16 11:20:37 -07:00
..
application Sort out EditController / ManageController / EditproController Diffusion hierarchy 2016-05-10 05:14:09 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit Version clustered, observed repositories in a reasonable way (by largest discovered HEAD) 2016-05-30 09:53:01 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
controller Add an "Unreachable" flag for commits and revive them during discovery 2016-06-16 11:20:37 -07:00
data Fetch and discover all Git ref types, not just branches 2016-06-16 11:20:05 -07:00
doorkeeper Partially modernize Doorkeeper/Asana bridge 2014-10-01 07:09:34 -07:00
edge Fix reverting commit language 2015-06-01 09:54:30 +10:00
editor Version clustered, observed repositories in a reasonable way (by largest discovered HEAD) 2016-05-30 09:53:01 -07:00
engine When observing a repository, switch to "importing" mode on a large discovery in an empty repository 2016-05-11 06:36:38 -07:00
engineextension Fix an issue with URI index updates from the daemons 2016-05-13 06:51:31 -07:00
exception Make repository daemon locks more granular and forgiving 2016-05-13 05:17:27 -07:00
garbagecollector Support ID-based repository URIs, and canonicalize repository URIs 2016-02-18 09:56:28 -08:00
gitlfs Implement a Git LFS link table and basic batch API 2016-03-17 17:15:20 -07:00
herald Improve audit behavior for "uninteresting" auditors 2016-05-17 13:47:33 -07:00
management Version clustered, observed repositories in a reasonable way (by largest discovered HEAD) 2016-05-30 09:53:01 -07:00
panel Allow administrators to configure global default settings 2016-06-05 13:15:06 -07:00
protocol Use HTTPEngineExtension proxy for git HTTP operations 2016-06-09 12:17:10 -07:00
query Fetch and discover all Git ref types, not just branches 2016-06-16 11:20:05 -07:00
remarkup Stop all object mentions from matching after "@" 2015-09-29 06:43:49 -07:00
request Rough sketch of new repository URI editing 2016-04-29 09:21:00 -07:00
response Implement a Git LFS server which supports no operations 2016-03-17 08:08:43 -07:00
ssh Fix improper viewer for Git SSH cluster workflows 2016-05-11 18:02:02 -07:00
symbol Extend from Phobject 2015-06-15 18:02:27 +10:00
typeahead Add datasources to allow search revisions by project. 2016-06-13 18:08:44 +00:00
view Clean up display of clone URIs a little bit 2016-05-11 13:14:55 -07:00
DiffusionLintSaveRunner.php Move repository URIs to a dedicated index 2016-01-13 09:34:31 -08:00