Skip to content

Commit 2838129

Browse files
authored
make storepatch false by default (#301)
1 parent cf0567b commit 2838129

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 2.7.2
2+
* By default `storepatch` keywords are `false`. This means that `gitpatch` is NOT stored by default. This is a BUGFIX, because there is an unknown problem of non-halting when storing the patch.
13
# 2.7.0
24
* DrWatson-related `ENV`ironment variables are now available to globally set the default values for e.g. story git patches, tagging, or safe-saving in various functions like `tagsave` or `produce_or_load`.
35
# 2.6.0

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DrWatson"
22
uuid = "634d3b9d-ee7a-5ddf-bec9-22491ea816e1"
33
repo = "https://github.com/JuliaDynamics/DrWatson.jl.git"
4-
version = "2.7.1"
4+
version = "2.7.2"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/saving_files.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function produce_or_load(path, c, f::Function;
4545
suffix = "jld2", prefix = default_prefix(c),
4646
tag::Bool = get(ENV, "DRWATSON_TAG", istaggable(suffix)),
4747
gitpath = projectdir(), loadfile = true,
48-
storepatch::Bool = get(ENV, "DRWATSON_STOREPATCH", true),
48+
storepatch::Bool = get(ENV, "DRWATSON_STOREPATCH", false),
4949
force = false, verbose = true, wsave_kwargs = Dict(),
5050
kwargs...
5151
)
@@ -143,7 +143,7 @@ to save the file using [`safesave`](@ref).
143143
function tagsave(file, d;
144144
gitpath = projectdir(),
145145
safe::Bool = get(ENV, "DRWATSON_SAFESAVE", false),
146-
storepatch::Bool = get(ENV, "DRWATSON_STOREPATCH", true),
146+
storepatch::Bool = get(ENV, "DRWATSON_STOREPATCH", false),
147147
force = false, source = nothing, kwargs...
148148
)
149149
d2 = tag!(d, gitpath=gitpath, storepatch=storepatch, force=force, source=source)

src/saving_tools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Dict{Symbol,Any} with 3 entries:
200200
"""
201201
function tag!(d::AbstractDict{K,T};
202202
gitpath = projectdir(), force = false, source = nothing,
203-
storepatch::Bool = get(ENV, "DRWATSON_STOREPATCH", true),
203+
storepatch::Bool = get(ENV, "DRWATSON_STOREPATCH", false),
204204
) where {K,T}
205205
@assert (K <: Union{Symbol,String}) "We only know how to tag dictionaries that have keys that are strings or symbols"
206206
c = gitdescribe(gitpath)

0 commit comments

Comments
 (0)