1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/repository
epriestley 95eab2f3b0 Record parent relationships when discovering commits
Summary:
Ref T4455. This adds a `repository_parents` table which stores `<childCommitID, parentCommitID>` relationships.

For new commits, it is populated when commits are discovered.

For older commits, there's a `bin/repository parents` script to rebuild the data.

Right now, there's no UI suggestion that you should run the script. I haven't come up with a super clean way to do this, and this table will only improve performance for now, so it's not important that we get everyone to run the script right away. I'm just leaving it for the moment, and we can figure out how to tell admins to run it later.

The ultimate goal is to solve T2683, but solving T4455 gets us some stuff anyway (for example, we can serve `diffusion.commitparentsquery` faster out of this cache).

Test Plan:
  - Used `bin/repository discover` to discover new commits in Git, SVN and Mercurial repositories.
  - Used `bin/repository parents` to rebuild Git and Mercurial repositories (SVN repos just exit with a message).
  - Verified that the table appears to be sensible.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: jhurwitz, epriestley

Maniphest Tasks: T4455

Differential Revision: https://secure.phabricator.com/D9044
2014-05-12 11:47:22 -07:00
..
application Ship "Repositories" create button to new Diffusion workflow 2013-10-29 15:32:39 -07:00
conduit Use "\z" instead of "$" to anchor validating regular expressions 2014-03-13 12:42:41 -07:00
constants Build an early multi-step repository create form 2013-07-14 07:37:17 -07:00
controller Fix Create New Repository link on Repositories 2014-02-16 20:12:09 -08:00
customfield Add a "tags" field to Diffusion commit 2014-03-12 11:30:52 -07:00
daemon Implement smart waits for rarely updated repositories 2014-04-16 13:01:04 -07:00
data Allow Git and Mercurial repositories to be cloned with names in the URI 2014-01-30 11:42:25 -08:00
editor Minor, fix a constant in PhabricatorRepositoryEditor 2014-03-26 10:45:48 -07:00
engine Record parent relationships when discovering commits 2014-05-12 11:47:22 -07:00
mail Allow users to receive email about pushes via Herald 2014-03-26 13:51:15 -07:00
management Record parent relationships when discovering commits 2014-05-12 11:47:22 -07:00
phid Don't show document types in search for uninstalled applications 2014-04-29 15:01:50 -07:00
query Move even more rendering into SearchEngine 2014-05-09 12:28:02 -07:00
response Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
search Various linter fixes. 2014-02-26 12:44:58 -08:00
storage Record parent relationships when discovering commits 2014-05-12 11:47:22 -07:00
worker Make the hard limit on the number of files showing in Herald emails a constant. 2014-05-01 07:37:26 -07:00
PhabricatorRepositoryConfigOptions.php Lock down some config options 2014-05-01 10:23:49 -07:00