1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00
phorge-phorge/src
epriestley 9d5a2b3b4f Add a RefPosition table to hold branch/tag positions once the RefCursor table is split
Summary:
Ref T11823. Currently, we have a "RefCursor" table which stores rows like `<branch or tag name, commit it is pointing at>` with some more data.

Because Mercurial can have a single branch pointing at several different places, this table must allow multiple rows with the same branch or tag name.

Among other things, this means there isn't a single PHID which can be used to identify a branch name in a stable way. However, we have several UIs where we want to be able to do this.

Some specific examples where we run into trouble: in Mercurial, if there are 5 heads for "default", that means there are 5 phids. And currently, if someone deletes a branch, we lose the PHID for it. Instead, we'd rather retain it so the whole world doesn't break if you accidentally delete a branch and then fix it a little later.

(I'll likely hold this until the rest of the logic is fleshed out a little more in followup changes.)

Test Plan: Ran `bin/storage upgrade`, saw the table get created without warnings.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T11823

Differential Revision: https://secure.phabricator.com/D18602
2017-09-15 10:19:17 -07:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Pass all Throwables to Exception Handlers, not just Exceptions 2017-06-20 05:44:51 -07:00
applications Add a RefPosition table to hold branch/tag positions once the RefCursor table is split 2017-09-15 10:19:17 -07:00
docs Document Ferret engine fulltext search features 2017-09-12 12:13:23 -07:00
extensions
infrastructure Fix an issue with selecting the right stemmed ngrams with Ferret engine queries 2017-09-12 12:13:42 -07:00
view Update Create Diff page for new Edit UI 2017-09-06 10:14:58 -07:00
__phutil_library_init__.php
__phutil_library_map__.php Add a RefPosition table to hold branch/tag positions once the RefCursor table is split 2017-09-15 10:19:17 -07:00