Created
August 21, 2018 08:51
-
-
Save pfitzseb/4db991d1a4bb2b339a316ec4b58e4ac5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> f = filter(r->r.message=="Diff" && (!isempty(r.kwargs[:newexprs]) || !isempty(r.kwargs[:oldexprs])), rlogger.logs); | |
julia> for i in f | |
println(f) | |
end | |
Test.LogRecord[LogRecord(Debug, "Diff", Revise, "Parsing", :Revise_67b60225, "C:\\Users\\Basti\\.julia\\dev\\Revise\\src\\Revise.jl", 212, Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:activemodule, :newexprs, :oldexprs),Tuple{Module,Set{Revise.RelocatableExpr},Set{Revise.RelocatableExpr}}}}(:activemodule=>LibGit2,:newexprs=>Set(Revise.RelocatableExpr[:(function clone(repo_url::AbstractString, repo_path::AbstractString; branch::AbstractString="", isbare::Bool=false, remote_cb::Ptr{Cvoid}=C_NULL, credentials::Creds=nothing, callbacks::Callbacks=Callbacks()) | |
cred_payload = reset!(CredentialPayload(credentials)) | |
if !(haskey(callbacks, :credentials)) | |
callbacks[:credentials] = (credentials_cb(), cred_payload) | |
elseif haskey(callbacks, :credentials) && credentials !== nothing | |
throw(ArgumentError(string("Unable to both use the provided `credentials` as a payload when the ", "`callbacks` also contain a credentials payload."))) | |
end | |
lbranch = Base.cconvert(Cstring, branch) | |
begin | |
##360 = $(Expr(:gc_preserve_begin, :lbranch)) | |
##361 = begin | |
remote_callbacks = RemoteCallbacks(callbacks) | |
fetch_opts = FetchOptions(callbacks=remote_callbacks) | |
clone_opts = CloneOptions(bare=Cint(isbare), checkout_branch=if isempty(lbranch) | |
Cstring(C_NULL) | |
else | |
Base.unsafe_convert(Cstring, lbranch) | |
end, fetch_opts=fetch_opts, remote_cb=remote_cb) | |
repo = try | |
clone(repo_url, repo_path, clone_opts) | |
catch err | |
if err isa GitError && err.code == Error.EAUTH | |
reject(cred_payload) | |
else | |
Base.shred!(cred_payload) | |
end | |
rethrow() | |
end | |
end | |
$(Expr(:gc_preserve_end, Symbol("##360"))) | |
##361 | |
end | |
approve(cred_payload) | |
return repo | |
end)]),:oldexprs=>Set(Revise.RelocatableExpr[:(function clone(repo_url::AbstractString, repo_path::AbstractString; branch::AbstractString="", isbare::Bool=false, remote_cb::Ptr{Cvoid}=C_NULL, credentials::Creds=nothing, callbacks::Callbacks=Callbacks()) | |
cred_payload = reset!(CredentialPayload(credentials)) | |
if !(haskey(callbacks, :credentials)) | |
callbacks[:credentials] = (credentials_cb(), cred_payload) | |
elseif haskey(callbacks, :credentials) && credentials !== nothing | |
throw(ArgumentError(string("Unable to both use the provided `credentials` as a payload when the ", "`callbacks` also contain a credentials payload."))) | |
end | |
lbranch = Base.cconvert(Cstring, branch) | |
begin | |
##358 = $(Expr(:gc_preserve_begin, :lbranch)) | |
##359 = begin | |
remote_callbacks = RemoteCallbacks(callbacks) | |
fetch_opts = FetchOptions(callbacks=remote_callbacks) | |
clone_opts = CloneOptions(bare=Cint(isbare), checkout_branch=if isempty(lbranch) | |
Cstring(C_NULL) | |
else | |
Base.unsafe_convert(Cstring, lbranch) | |
end, fetch_opts=fetch_opts, remote_cb=remote_cb) | |
repo = try | |
clone(repo_url, repo_path, clone_opts) | |
catch err | |
if err isa GitError && err.code == Error.EAUTH | |
reject(cred_payload) | |
else | |
Base.shred!(cred_payload) | |
end | |
rethrow() | |
end | |
end | |
$(Expr(:gc_preserve_end, Symbol("##358"))) | |
##359 | |
end | |
approve(cred_payload) | |
return repo | |
end)]))), LogRecord(Debug, "Diff", Revise, "Parsing", :Revise_67b60228, "C:\\Users\\Basti\\.julia\\dev\\Revise\\src\\Revise.jl", 212, Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:activemodule, :newexprs, :oldexprs),Tuple{Module,Set{Revise.RelocatableExpr},Set{Revise.RelocatableExpr}}}}(:activemodule=>LibGit2,:newexprs=>Set(Revise.RelocatableExpr[:(function target(tag::GitTag) | |
ensure_initialized() | |
begin | |
##368 = $(Expr(:gc_preserve_begin, :tag)) | |
##369 = begin | |
oid_ptr = ccall((:git_tag_target_id, :libgit2), Ptr{GitHash}, (Ptr{Cvoid},), tag.ptr) | |
oid_ptr == C_NULL && throw(Error.GitError(Error.ERROR)) | |
str = unsafe_load(oid_ptr) | |
end | |
$(Expr(:gc_preserve_end, Symbol("##368"))) | |
##369 | |
end | |
return str | |
end), :(function name(tag::GitTag) | |
ensure_initialized() | |
begin | |
##366 = $(Expr(:gc_preserve_begin, :tag)) | |
##367 = begin | |
str_ptr = ccall((:git_tag_name, :libgit2), Cstring, (Ptr{Cvoid},), tag.ptr) | |
str_ptr == C_NULL && throw(Error.GitError(Error.ERROR)) | |
str = unsafe_string(str_ptr) | |
end | |
$(Expr(:gc_preserve_end, Symbol("##366"))) | |
##367 | |
end | |
return str | |
end)]),:oldexprs=>Set(Revise.RelocatableExpr[:(function name(tag::GitTag) | |
ensure_initialized() | |
begin | |
##362 = $(Expr(:gc_preserve_begin, :tag)) | |
##363 = begin | |
str_ptr = ccall((:git_tag_name, :libgit2), Cstring, (Ptr{Cvoid},), tag.ptr) | |
str_ptr == C_NULL && throw(Error.GitError(Error.ERROR)) | |
str = unsafe_string(str_ptr) | |
end | |
$(Expr(:gc_preserve_end, Symbol("##362"))) | |
##363 | |
end | |
return str | |
end), :(function target(tag::GitTag) | |
ensure_initialized() | |
begin | |
##364 = $(Expr(:gc_preserve_begin, :tag)) | |
##365 = begin | |
oid_ptr = ccall((:git_tag_target_id, :libgit2), Ptr{GitHash}, (Ptr{Cvoid},), tag.ptr) | |
oid_ptr == C_NULL && throw(Error.GitError(Error.ERROR)) | |
str = unsafe_load(oid_ptr) | |
end | |
$(Expr(:gc_preserve_end, Symbol("##364"))) | |
##365 | |
end | |
return str | |
end)]))), LogRecord(Debug, "Diff", Revise, "Parsing", :Revise_67b60259, "C:\\Users\\Basti\\.julia\\dev\\Revise\\src\\Revise.jl", 212, Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:activemodule, :newexprs, :oldexprs),Tuple{Module,Set{Revise.RelocatableExpr},Set{Revise.RelocatableExpr}}}}(:activemodule=>Libdl,:newexprs=>Set(Revise.RelocatableExpr[ERROR: deepcopy of Modules not supported | |
Stacktrace: | |
[1] error(::String) at .\error.jl:33 | |
[2] deepcopy_internal(::Module, ::IdDict{Any,Any}) at .\deepcopy.jl:34 | |
[3] _deepcopy_array_t(::Any, ::Type, ::IdDict{Any,Any}) at .\deepcopy.jl:91 | |
[4] deepcopy_internal(::Array{Any,1}, ::IdDict{Any,Any}) at .\deepcopy.jl:78 | |
[5] deepcopy_internal(::Any, ::IdDict{Any,Any}) at .\deepcopy.jl:67 | |
[6] show(::IOContext{Base.TTY}, ::Revise.RelocatableExpr) at .\deepcopy.jl:28 | |
[7] show_delim_array(::IOContext{Base.TTY}, ::Set{Revise.RelocatableExpr}, ::Char, ::String, ::Char, ::Bool, ::Int64, ::Int64) at .\show.jl:695 | |
[8] show_delim_array at .\show.jl:680 [inlined] | |
[9] show_vector(::IOContext{Base.TTY}, ::Set{Revise.RelocatableExpr}, ::Char, ::Char) at .\arrayshow.jl:442 | |
[10] show_vector at .\arrayshow.jl:432 [inlined] | |
[11] show(::IOContext{Base.TTY}, ::Set{Revise.RelocatableExpr}) at .\set.jl:41 | |
[12] show(::IOContext{Base.TTY}, ::Pair{Symbol,Any}) at .\show.jl:598 | |
[13] show(::IOContext{Base.TTY}, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:activemodule, :newexprs, :oldexprs),Tuple{Module,Set{Revise.RelocatableExpr},Set{Revise.RelocatableExpr}}}}) at .\dict.jl:39 | |
[14] show_default(::IOContext{Base.TTY}, ::Any) at .\show.jl:332 | |
[15] show at .\show.jl:315 [inlined] | |
[16] show_delim_array(::IOContext{Base.TTY}, ::Array{Test.LogRecord,1}, ::Char, ::String, ::Char, ::Bool, ::Int64, ::Int64) at .\show.jl:663 | |
[17] show_vector(::Base.TTY, ::Array{Test.LogRecord,1}, ::Char, ::Char) at .\show.jl:649 | |
[18] show_vector at .\arrayshow.jl:432 [inlined] | |
[19] show at .\arrayshow.jl:418 [inlined] | |
[20] print(::Base.TTY, ::Array{Test.LogRecord,1}) at .\strings\io.jl:31 | |
[21] print(::Base.TTY, ::Array{Test.LogRecord,1}, ::Char) at .\strings\io.jl:42 | |
[22] println(::Base.TTY, ::Array{Test.LogRecord,1}) at .\strings\io.jl:69 | |
[23] println(::Array{Test.LogRecord,1}) at .\coreio.jl:4 | |
[24] top-level scope at .\REPL[10]:2 [inlined] | |
[25] top-level scope at .\none:0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment