Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advertise undo and redo when there are changes to an env #4002

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2743,8 +2743,13 @@ function print_status(env::EnvCache, old_env::Union{Nothing,EnvCache}, registrie
println(io)
end

# figure out if we are at the end of status prints, given this is called twice for combined mode
last_status_report = mode != PKGMODE_COMBINED || mode == PKGMODE_COMBINED && manifest

if !no_changes && !all_packages_downloaded
printpkgstyle(io, :Info, "Packages marked with $not_installed_indicator are not downloaded, use `instantiate` to download", color=Base.info_color(), ignore_indent)
printpkgstyle(io, :Info, "Packages marked with $not_installed_indicator are not downloaded, use `instantiate` to download. Use `undo/redo` to revert changes.", color=Base.info_color(), ignore_indent)
elseif last_status_report && old_env !== nothing && !no_changes
printpkgstyle(io, :Info, "Use `undo/redo` to revert changes.", color=Base.info_color(), ignore_indent)
end
if !outdated && (mode != PKGMODE_COMBINED || (manifest == true))
tipend = manifest ? " -m" : ""
Expand Down
Loading