After importing a large repository I'm left with 4 commits that are stuck in "importing". When I try to manually import them with bin/repository reparse I get an exception (which explains why they're never imported). Here's an example:
mclovin@colors /var/repo/6 % git show 3f8a15ac9826
commit 3f8a15ac9826f7dd2ae7aef574da1c3cec1ab325
Merge: 8fd6b12 207bc33
Author: xxxxxxx
Date: Fri Jul 8 20:12:16 2016 -0700
Automatic merge
* commit '207bc33a0e3bf0727a6624deb45000f1d41eef00':
mclovin@colors /var/repo/6 % /opt/phabricator/phabricator/bin/repository reparse rHLT3f8a15ac9826 --change
[2016-07-10 05:40:13] EXCEPTION: (PhabricatorWorkerPermanentFailureException) Commit "191140" has been deleted: it is no longer reachable from any ref. at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:30]
arcanist(head=stable, ref.master=4d4d16f25985, ref.stable=f1c45a3323ae), phabricator(head=stable, ref.master=f790dd5235b9, ref.stable=58375fa9e6db), phutil(head=stable, ref.master=32c56dc20b39, ref.stable=119e5b12ba06)
#0 PhabricatorRepositoryCommitParserWorker::loadCommit() called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:43]
#1 PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:122]
#2 PhabricatorWorker::executeTask() called at [<phabricator>/src/applications/repository/management/PhabricatorRepositoryManagementReparseWorkflow.php:325]
#3 PhabricatorRepositoryManagementReparseWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:410]
#4 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:303]
#5 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/repository/manage_repositories.php:22]Notice that the exception is referencing a deleted commit "191140", which doesn't really look like a commit at all.
I'm not sure what exactly is going on with these commits, and they do appear a bit fishy, but they probably shouldn't hang up the import indefinitely, parsing probably shouldn't crash.