phorge/src
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
..
aphront Build an "affected path" index when attaching diffs to revisions 2011-09-15 07:45:14 -07:00
applications Add a relation table for Revisions to local commit hashes 2011-09-26 15:02:37 -07:00
docs Document mercurial and immutable history doctrines 2011-09-15 07:45:22 -07:00
infrastructure Add an explicit test for the availablility of 'php' from the command line during 2011-09-07 13:20:39 -07:00
storage Don't flag "EXPLAIN" as a write 2011-09-04 15:20:39 -07:00
view Add an option to switch tokenizers to use "ondemand" instead of "preloaded" 2011-09-21 14:22:01 -07:00
__celerity_resource_map__.php Add an option to switch tokenizers to use "ondemand" instead of "preloaded" 2011-09-21 14:22:01 -07:00
__phutil_library_init__.php Distinguish between aphront and phabricator. 2011-01-22 17:45:28 -08:00
__phutil_library_map__.php Add a relation table for Revisions to local commit hashes 2011-09-26 15:02:37 -07:00