diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-03-01 10:52:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 10:52:55 +0100 |
commit | 9ab81a9d386c40cc518db896553f88e64d10a39b (patch) | |
tree | 2fca0c2702ff79090362119e82bdb52eabcb982b /src/libfetchers/mercurial.cc | |
parent | 983c991652df3e84b43a426f2b4e585c34c0f8af (diff) | |
parent | ea71da395fe23fc0b4adb6fe5075742441e8baf8 (diff) |
Merge pull request #6183 from obsidiansystems/sort-config
Move some stuff from `Settings` to a new `FetchSettings`.
Diffstat (limited to 'src/libfetchers/mercurial.cc')
-rw-r--r-- | src/libfetchers/mercurial.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libfetchers/mercurial.cc b/src/libfetchers/mercurial.cc index 12cdecbc1..8b82e9daa 100644 --- a/src/libfetchers/mercurial.cc +++ b/src/libfetchers/mercurial.cc @@ -5,6 +5,8 @@ #include "store-api.hh" #include "url-parts.hh" +#include "fetch-settings.hh" + #include <sys/time.h> using namespace std::string_literals; @@ -165,10 +167,10 @@ struct MercurialInputScheme : InputScheme /* This is an unclean working tree. So copy all tracked files. */ - if (!settings.allowDirty) + if (!fetchSettings.allowDirty) throw Error("Mercurial tree '%s' is unclean", actualUrl); - if (settings.warnDirty) + if (fetchSettings.warnDirty) warn("Mercurial tree '%s' is unclean", actualUrl); input.attrs.insert_or_assign("ref", chomp(runHg({ "branch", "-R", actualUrl }))); |