refactor(3p/nix/libutil): Replace chomp() with absl::strings
This commit is contained in:
parent
10481d2586
commit
06d7b4aebd
15 changed files with 40 additions and 26 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
#include <regex>
|
||||
|
||||
#include <absl/strings/ascii.h>
|
||||
#include <glog/logging.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
|
|
@ -43,7 +44,8 @@ HgInfo exportMercurial(ref<Store> store, const std::string& uri,
|
|||
|
||||
HgInfo hgInfo;
|
||||
hgInfo.rev = "0000000000000000000000000000000000000000";
|
||||
hgInfo.branch = chomp(runProgram("hg", true, {"branch", "-R", uri}));
|
||||
hgInfo.branch = absl::StripTrailingAsciiWhitespace(
|
||||
runProgram("hg", true, {"branch", "-R", uri}));
|
||||
|
||||
auto files = tokenizeString<std::set<std::string>>(
|
||||
runProgram("hg", true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue