1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00

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:
epriestley 2014-01-21 14:09:51 -08:00
parent 136af8d2ab
commit be59578794

View file

@ -40,9 +40,10 @@ final class PhabricatorRepositoryManagementImportingWorkflow
$rows = queryfx_all( $rows = queryfx_all(
$conn_r, $conn_r,
'SELECT repositoryID, commitIdentifier, importStatus FROM %T 'SELECT repositoryID, commitIdentifier, importStatus FROM %T
WHERE repositoryID IN (%Ld) AND importStatus != %d', WHERE repositoryID IN (%Ld) AND (importStatus & %d) != %d',
$table->getTableName(), $table->getTableName(),
array_keys($repos), array_keys($repos),
PhabricatorRepositoryCommit::IMPORTED_ALL,
PhabricatorRepositoryCommit::IMPORTED_ALL); PhabricatorRepositoryCommit::IMPORTED_ALL);
$console = PhutilConsole::getConsole(); $console = PhutilConsole::getConsole();