1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-04 16:39:20 +01:00
phorge-phorge/resources/sql/patches
epriestley 016b060aea Add a relation table for Revisions to local commit hashes
Summary:
This allows us to performantly query for diffs related to a given local hash.
Immediate applications are:

  - Commit detection in Mercurial and Git-Immutable workflows.
  - Some async unit test stuff @mgummelt was doing.

Test Plan:
Diffed locally under SVN/Git/hg, checked the table, got sensible output.

  mysql> select * from differential_revisionhash;
  +------------+------+------------------------------------------+
  | revisionID | type | hash                                     |
  +------------+------+------------------------------------------+
  |         40 | gtcm | 8c6fb2f95598a50f7aac64a5f4cc6c12b5db42f5 |
  |         40 | gttr | 54710e361a465f4ff39565a93b2a221b6e7dd07c |
  |         41 | hgcm | c29cb69aec14                             |
  |         41 | hgcm | e7309be4eabb                             |
  |         41 | hgcm | 4e885caeff60                             |
  |         41 | hgcm | 213ee1cd30ea                             |
  |         41 | hgcm | b4050fb3490f                             |
  |         41 | hgcm | 72a76bd7ffa2                             |
  |         41 | hgcm | 06c2687e63fb                             |
  |         41 | hgcm | 2b464bde6b48                             |
  +------------+------+------------------------------------------+
  10 rows in set (0.00 sec)

NOTE: Mercurial hashes are short-form but I'll shoot out a separate Arcanist
diff to fix this.

Reviewers: Makinde, fratrik, mgummelt, jungejason, nh, tuomaspelkonen, aran

Reviewed By: Makinde

CC: aran, Makinde

Differential Revision: 961
2011-09-26 15:02:37 -07:00
..
000.project.sql
001.maniphest_projects.sql
002.oauth.sql
003.more_oauth.sql
004.daemonrepos.sql
005.workers.sql
006.repository.sql
007.daemonlog.sql
008.repoopt.sql
009.repo_summary.sql
010.herald.sql
011.badcommit.sql
012.dropphidtype.sql
013.commitdetail.sql
014.shortcuts.sql
015.preferences.sql
016.userrealnameindex.sql
017.sessionkeys.sql
018.owners.sql
019.arcprojects.sql
020.pathcapital.sql
021.xhpastview.sql
022.differentialcommit.sql
023.dxkeys.sql
024.mlistkeys.sql
025.commentopt.sql
026.diffpropkey.sql
027.metamtakeys.sql
028.systemagent.sql
029.cursors.sql
030.imagemacro.sql
031.workerrace.sql
032.viewtime.sql
033.privtest.sql
034.savedheader.sql
035.proxyimage.sql
036.mailkey.sql
037.setuptest.sql
038.admin.sql
039.userlog.sql
040.transform.sql
041.heraldrepetition.sql
042.commentmetadata.sql
043.pastebin.sql
044.countdown.sql
045.timezone.sql
046.conduittoken.sql
047.projectstatus.sql
048.relationshipkeys.sql
049.projectowner.sql
050.taskdenormal.sql
051.projectfilter.sql
052.pastelanguage.sql
053.feed.sql
054.subscribers.sql
055.add_author_to_files.sql
056.slowvote.sql
057.parsecache.sql
058.missingkeys.sql
059.engines.php
060.phriction.sql
061.phrictioncontent.sql
062.phrictionmenu.sql
063.pasteforks.sql
064.subprojects.sql
065.sshkeys.sql
066.phrictioncontent.sql
067.preferences.sql
068.maniphestauxiliarystorage.sql
069.heraldxscript.sql
070.differentialaux.sql
071.contentsource.sql
072.blamerevert.sql
073.reposymbols.sql
074.affectedpath.sql
075.revisionhash.sql Add a relation table for Revisions to local commit hashes 2011-09-26 15:02:37 -07:00