Homec4science

Remove all the multi-pass autoclose-branch separate-cache / seenOnBranches junk

Authored by epriestley <git@epriestley.com> on Jan 16 2014, 23:58.

Description

Remove all the multi-pass autoclose-branch separate-cache / seenOnBranches junk

Summary:
Ref T4327. Simplify the git discovery process so I can move it to the DiscoveryEngine, so I can make change parsing testable.

In particular:

  • As an optimization, we process closeable branches ("master") first, then process uncloseable branches ("epriestley-devel"). This means that in the common case we can insert a commit as closeable immediately when it is discovered, the first pass through the pipeline will get it right, and the "ref update" step will never need to do any meaningful work.
  • Commits which do not initially appear on a closeable branch, but later move to one (via merges or ref moves) will now be caught in the ref update step, have the closeable flag set, and have a message step re-queued.
  • We no longer need to do a separate discovery step on closable branches.
  • We no longer need to keep track of seenOnBranches.

Test Plan: Ran discovery on repositories after pushing commits, got reasonable results.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4327

Differential Revision: https://secure.phabricator.com/D7985

Details

Committed
epriestley <git@epriestley.com>Jan 17 2014, 20:48
Pushed
aubortJan 31 2017, 17:16
Parents
rPHcec3f44b900e: Provide an alternate, more general "closeable" flag for commits
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH618da2265d51: Remove all the multi-pass autoclose-branch separate-cache / seenOnBranches junk (authored by epriestley <git@epriestley.com>).Jan 17 2014, 20:48