@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use `PhutilConsoleProgressBar` for the `repository/reparse.php` script

Summary: The output from this script is too verbose... all that I care about is the overall progress.

Test Plan:
Ran the script on a large repository.

```lang=bash
./scripts/repository/reparse.php --all XYZ --message
NOTE: This script will queue tasks to reparse the data. Once the tasks have been queued, you need to run Taskmaster daemons to execute them.

QUEUEING TASKS (92,969 Commits):
[ ] 0.1%
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

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

+6 -5
+6 -5
scripts/repository/reparse.php
··· 218 218 echo "QUEUEING TASKS (".number_format(count($commits))." Commits):\n"; 219 219 } 220 220 221 + $progress = new PhutilConsoleProgressBar(); 222 + $progress->setTotal(count($commits)); 223 + 221 224 $tasks = array(); 222 225 foreach ($commits as $commit) { 223 226 $classes = array(); ··· 271 274 $class, 272 275 $spec, 273 276 PhabricatorWorker::PRIORITY_IMPORT); 274 - 275 - $commit_name = 'r'.$callsign.$commit->getCommitIdentifier(); 276 - echo " Queued '{$class}' for commit '{$commit_name}'.\n"; 277 277 } 278 278 } else { 279 279 foreach ($classes as $class) { 280 280 $worker = newv($class, array($spec)); 281 - echo "Running '{$class}'...\n"; 282 281 $worker->executeTask(); 283 282 } 284 283 } 284 + 285 + $progress->update(1); 285 286 } 286 287 287 - echo "\nDone.\n"; 288 + $progress->done(); 288 289 289 290 function usage($message) { 290 291 echo phutil_console_format(