Run clang-format over EdenServiceHandler.

Summary: This will make subsequent changes to these files cleaner.

Reviewed By: wez

Differential Revision: D5675296

fbshipit-source-id: 06b14d55485415e3ec8a59a4bcc50e6189464b7d
This commit is contained in:
Michael Bolin 2017-08-21 17:51:48 -07:00 committed by Facebook Github Bot
parent f946ae76f9
commit 059e2663d5
2 changed files with 18 additions and 18 deletions

View File

@ -412,8 +412,8 @@ void EdenServiceHandler::scmGetStatus(
std::unique_ptr<std::string> mountPoint,
bool listIgnored) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
out = dirstate->getStatus(listIgnored);
XLOG(INFO) << "scmGetStatus() returning " << out;
@ -424,8 +424,8 @@ void EdenServiceHandler::hgGetDirstateTuple(
std::unique_ptr<std::string> mountPoint,
std::unique_ptr<std::string> relativePath) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
auto filename = RelativePathPiece{*relativePath};
try {
@ -448,8 +448,8 @@ void EdenServiceHandler::hgSetDirstateTuple(
std::unique_ptr<std::string> relativePath,
std::unique_ptr<DirstateTuple> tuple) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
XLOG(INFO) << "hgSetDirstateTuple(" << *relativePath << ") to "
<< _DirstateNonnormalFileStatus_VALUES_TO_NAMES.at(
@ -465,8 +465,8 @@ bool EdenServiceHandler::hgDeleteDirstateTuple(
std::unique_ptr<std::string> mountPoint,
std::unique_ptr<std::string> relativePath) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
XLOG(DBG2) << "hgDeleteDirstateTuple(" << *relativePath << ")";
auto filename = RelativePathPiece{*relativePath};
@ -477,8 +477,8 @@ void EdenServiceHandler::hgGetNonnormalFiles(
std::vector<HgNonnormalFile>& out,
std::unique_ptr<std::string> mountPoint) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
for (auto& pair : dirstate->hgGetNonnormalFiles()) {
HgNonnormalFile nonnormal;
@ -494,8 +494,8 @@ void EdenServiceHandler::hgCopyMapPut(
std::unique_ptr<std::string> relativePathDest,
std::unique_ptr<std::string> relativePathSource) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
dirstate->hgCopyMapPut(
RelativePathPiece{*relativePathDest},
RelativePathPiece{*relativePathSource});
@ -506,8 +506,8 @@ void EdenServiceHandler::hgCopyMapGet(
std::unique_ptr<std::string> mountPoint,
std::unique_ptr<std::string> relativePathDest) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
relativePathSource =
dirstate->hgCopyMapGet(RelativePathPiece{*relativePathDest})
.stringPiece()
@ -518,8 +518,8 @@ void EdenServiceHandler::hgCopyMapGetAll(
std::map<std::string, std::string>& copyMap,
std::unique_ptr<std::string> mountPoint) {
auto dirstate = server_->getMount(*mountPoint)->getDirstate();
DCHECK(dirstate != nullptr) << "Failed to get dirstate for "
<< mountPoint.get();
DCHECK(dirstate != nullptr)
<< "Failed to get dirstate for " << mountPoint.get();
for (const auto& pair : dirstate->hgCopyMapGetAll()) {
copyMap.emplace(pair.first.str(), pair.second.stringPiece().str());

View File

@ -105,8 +105,8 @@ class EdenServiceHandler : virtual public StreamingEdenServiceSvIf,
std::unique_ptr<hgdirstate::DirstateTuple> tuple) override;
bool hgDeleteDirstateTuple(
std::unique_ptr<std::string> mountPoint,
std::unique_ptr<std::string> relativePath) override;
std::unique_ptr<std::string> mountPoint,
std::unique_ptr<std::string> relativePath) override;
void hgGetNonnormalFiles(
std::vector<HgNonnormalFile>& out,