Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixing the download procedure for mercurial. #141

Merged
1 commit merged into from

1 participant

@ferd
Owner

The current version first pulls with -U and then updates to the given revision. The problem with this approach is that hg requires to be in the repo to do it. This adds arguments to the port process to switch directories in between commands in order to update successfully

@ferd ferd Fixing the download procedure for mercurial.
The current version first pulls with -U and then updates to the
given revision. The problem with this approach is that hg requires
to be in the repo to do it. This adds arguments to the port process
to switch directories in between commands in order to update successfully
b645760
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 22, 2011
  1. @ferd

    Fixing the download procedure for mercurial.

    ferd authored
    The current version first pulls with -U and then updates to the
    given revision. The problem with this approach is that hg requires
    to be in the repo to do it. This adds arguments to the port process
    to switch directories in between commands in order to update successfully
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/agner_download.erl
View
2  src/agner_download.erl
@@ -42,7 +42,7 @@ fetch_1({hg, URL, Rev}, Directory) ->
false -> %% new
PortClone = hg(["clone", "-U", URL, Directory]),
process_port(PortClone, fun () ->
- PortUpdate = hg(["update", Rev]),
+ PortUpdate = hg(["update", Rev], [{cd, Directory}]),
process_port(PortUpdate, fun () -> ok end)
end);
true -> %% existing
Something went wrong with that request. Please try again.