diff --git a/src/applications/repository/daemon/commitdiscovery/git/PhabricatorRepositoryGitCommitDiscoveryDaemon.php b/src/applications/repository/daemon/commitdiscovery/git/PhabricatorRepositoryGitCommitDiscoveryDaemon.php index c76729b64c..ee6d09fbbd 100644 --- a/src/applications/repository/daemon/commitdiscovery/git/PhabricatorRepositoryGitCommitDiscoveryDaemon.php +++ b/src/applications/repository/daemon/commitdiscovery/git/PhabricatorRepositoryGitCommitDiscoveryDaemon.php @@ -119,7 +119,7 @@ final class PhabricatorRepositoryGitCommitDiscoveryDaemon while (true) { $target = array_pop($insert); list($epoch) = $repository->execxLocalCommand( - 'log -n1 --pretty="%%at" %s', + 'log -n1 --pretty="%%ct" %s', $target); $epoch = trim($epoch); diff --git a/src/applications/repository/worker/commitmessageparser/base/PhabricatorRepositoryCommitMessageParserWorker.php b/src/applications/repository/worker/commitmessageparser/base/PhabricatorRepositoryCommitMessageParserWorker.php index 3c54d4f7ab..eeab1b2731 100644 --- a/src/applications/repository/worker/commitmessageparser/base/PhabricatorRepositoryCommitMessageParserWorker.php +++ b/src/applications/repository/worker/commitmessageparser/base/PhabricatorRepositoryCommitMessageParserWorker.php @@ -96,10 +96,7 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker if ($revision->getStatus() != ArcanistDifferentialRevisionStatus::CLOSED) { - $date_committed = $this->getDateCommitted($commit); - if ($date_committed) { - $revision->setDateCommitted($date_committed); - } + $revision->setDateCommitted($commit->getEpoch()); $message = null; $committer = $data->getCommitDetail('authorPHID'); @@ -118,10 +115,6 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker } } - protected function getDateCommitted(PhabricatorRepositoryCommit $commit) { - return null; - } - /** * When querying for revisions by hash, more than one revision may be found. * This function identifies the "best" revision from such a set. Typically, diff --git a/src/applications/repository/worker/commitmessageparser/svn/PhabricatorRepositorySvnCommitMessageParserWorker.php b/src/applications/repository/worker/commitmessageparser/svn/PhabricatorRepositorySvnCommitMessageParserWorker.php index bd295c0f79..fafcbf6f41 100644 --- a/src/applications/repository/worker/commitmessageparser/svn/PhabricatorRepositorySvnCommitMessageParserWorker.php +++ b/src/applications/repository/worker/commitmessageparser/svn/PhabricatorRepositorySvnCommitMessageParserWorker.php @@ -54,8 +54,4 @@ final class PhabricatorRepositorySvnCommitMessageParserWorker return array(); } - protected function getDateCommitted(PhabricatorRepositoryCommit $commit) { - return $commit->getEpoch(); - } - }