1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 01:32:42 +01:00
phorge-phorge/src/applications/repository
epriestley 46008ce3b3 Record initial branch when recording commits
Summary:
We have a race condition right now, where we may insert a commit without `seenOnBranches`. This means shouldAutocloseCommit will return false (since it's not on any autoclose branches) if the message parser runs fast enough, causing it to associate the commit but not close the revision. This happened for D2851.

Also prompt the user to repair broken repositories.

Test Plan: Ran discovery / repair. Ran discovery on new commits. Verified 'seenOnBranches' value. Deleted some data, verified "repair" error. Repaired repository.

Reviewers: jungejason, nh, vrana, btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D2858
2012-06-28 14:00:00 -07:00
..
constants Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
controller Publish feed stories about commits 2012-06-20 06:03:44 -07:00
daemon Record initial branch when recording commits 2012-06-28 14:00:00 -07:00
management Add a --repair flag to "bin/repository discover" 2012-06-25 12:35:47 -07:00
parser Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
storage handle svn and hg for auto-close 2012-06-22 17:05:06 -07:00
worker Remove leading "/" so that "git cat-file" works 2012-06-26 11:58:34 -07:00