1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00
phorge-phorge/scripts/repository
epriestley d2b01aead0 Use one daemon to discover commits in all repositories, not one per repository
Summary:
See D2418. This merges the commit discovery daemon into the same single daemon, and applies all the same rules to it.

There are relatively few implementation changes, but a few things did change:

  - I simplified/improved Mercurial importing, by finding full branch tip hashes with "--debug branches" and using "parents --template {node}" so we don't need to do separate "--debug id" calls.
  - Added a new "--not" flag to exclude repositories, since I switched to real arg parsing anyway.
  - I removed a web UI notification that you need to restart the daemons, this is no longer true.
  - I added a web UI notification that no pull daemon is running on the machine.

NOTE: @makinde, this doesn't change anything from your perspective, but it something breaks this is the likely cause.

This implicitly resolves T792, because discovery no longer runs before pulling.

Test Plan:

  - Swapped databases to a fresh install.
  - Ran "pulllocal" in debug mode. Verified it correctly does nothing (fixed a minor issue with min() on empty array).
  - Added an SVN repository. Verified it cloned and discovered correctly.
  - Added a Mercurial repository. Verified it cloned and discovered correctly.
  - Added a Git repository. Verified it cloned and discovered correctly.
  - Ran with arguments to verify behaviors: "--not MTEST --not STEST", "P --no-discovery", "P".

Reviewers: btrahan, csilvers, Makinde

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T792

Differential Revision: https://secure.phabricator.com/D2430
2012-05-08 12:53:41 -07:00
..
audit.php Add a script to close all open audits in a repository 2012-03-06 15:10:25 -08:00
discover.php Use one daemon to discover commits in all repositories, not one per repository 2012-05-08 12:53:41 -07:00
parse_one_commit.php Refactor repository reparse scripts to be more useful 2011-09-27 17:20:04 -07:00
pull.php Run one daemon to pull all working copies, not one daemon per working copy 2012-05-07 15:01:10 -07:00
rebuild_summaries.php Merge __init_env__.php into __init_script__.php 2011-10-02 11:48:09 -07:00
reconcile.php Fix existence test in "reconcile.php" 2012-02-07 10:46:26 -08:00
reparse.php Fix English 2012-04-12 13:38:14 -07:00
reparse_all_commit_messages.php Refactor repository reparse scripts to be more useful 2011-09-27 17:20:04 -07:00
test_connection.php Improve messaging around passworded SSH keys 2012-03-12 10:34:27 -07:00
undo_commits.php Use "closed", not "committed", in Differential 2012-04-23 17:40:57 -07:00