Skip to content

Commit

Permalink
rename Pkg.release => Pkg.free
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Oct 24, 2013
1 parent fbf6406 commit af854d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion base/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ clone(url::String, pkg::String) = cd(Entry.clone,url,pkg)
checkout(pkg::String, branch::String="master"; merge::Bool=true, pull::Bool=false) =
cd(Entry.checkout,pkg,branch,merge,pull)

release(pkg::String) = cd(Entry.release,pkg)
free(pkg::String) = cd(Entry.free,pkg)

pin(pkg::String) = cd(Entry.pin,pkg)
pin(pkg::String, ver::VersionNumber) = cd(Entry.pin,pkg,ver)
Expand All @@ -58,6 +58,7 @@ build(pkgs::String...) = cd(Entry.build,[pkgs...])

generate(pkg::String, license::String) = cd(Generate.package,pkg,license)

@deprecate release free
@deprecate fixup build
@deprecate fix pin

Expand Down
10 changes: 5 additions & 5 deletions base/pkg/entry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ function checkout(pkg::String, branch::String, merge::Bool, pull::Bool)
_checkout(pkg,branch,merge,pull)
end

function release(pkg::String)
function free(pkg::String)
ispath(pkg,".git") || error("$pkg is not a git repo")
Read.isinstalled(pkg) || error("$pkg cannot be released – not an installed package")
Read.isinstalled(pkg) || error("$pkg cannot be freed – not an installed package")
avail = Read.available(pkg)
isempty(avail) && error("$pkg cannot be released – not a registered package")
Git.dirty(dir=pkg) && error("$pkg cannot be released – repo is dirty")
info("Releasing $pkg")
isempty(avail) && error("$pkg cannot be freed – not a registered package")
Git.dirty(dir=pkg) && error("$pkg cannot be freed – repo is dirty")
info("Freeing $pkg")
vers = sort!([keys(avail)...], rev=true)
while true
for ver in vers
Expand Down

0 comments on commit af854d7

Please sign in to comment.