Fix bin/repository importing for CLOSEABLE flag
Summary: After adding the CLOSEABLE flag, `bin/repository importing` reports CLOSEABLE commits with no information. Just don't report these, for consistency with the old behavior. Adding flags to show them might be nice at some point if we run into issues where that output would be useful. Test Plan: Ran `bin/repositroy importing` on a repository with CLOSEABLE commits. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D8024
This commit is contained in:
@@ -40,9 +40,10 @@ final class PhabricatorRepositoryManagementImportingWorkflow
|
||||
$rows = queryfx_all(
|
||||
$conn_r,
|
||||
'SELECT repositoryID, commitIdentifier, importStatus FROM %T
|
||||
WHERE repositoryID IN (%Ld) AND importStatus != %d',
|
||||
WHERE repositoryID IN (%Ld) AND (importStatus & %d) != %d',
|
||||
$table->getTableName(),
|
||||
array_keys($repos),
|
||||
PhabricatorRepositoryCommit::IMPORTED_ALL,
|
||||
PhabricatorRepositoryCommit::IMPORTED_ALL);
|
||||
|
||||
$console = PhutilConsole::getConsole();
|
||||
|
||||
Reference in New Issue
Block a user