Skip to content

Commit a2ce673

Browse files
lXXXwfacebook-github-bot
authored andcommitted
Fix a bug in the config check logic
Summary: Since `cfg_get_bool` will return the default value when there is no key found for the config "disable_hg_autopullcommits" and we want to keep the original behavior for this case, we should revert the default boolean value (`False`) to `True`. Reviewed By: genevievehelsel Differential Revision: D72365523 fbshipit-source-id: 73f9c8ce211dfb0fa7e2ef27f2287be50f159cb6
1 parent e66edd2 commit a2ce673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third-party/watchman/src/watchman/scm/Mercurial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ w_string Mercurial::mergeBaseWith(
165165
[this, commit, requestId](const std::string&) {
166166
auto revset = fmt::format("ancestor(.,{})", commit);
167167
MercurialResult result;
168-
if (cfg_get_bool("disable_hg_autopullcommits", false)) {
168+
if (!cfg_get_bool("disable_hg_autopullcommits", false)) {
169169
result = runMercurial(
170170
{hgExecutablePath(), "log", "-T", "{node}", "-r", revset},
171171
makeHgOptions(requestId),

0 commit comments

Comments
 (0)