소스 검색

Code documentation that the PR was for backwards compatility

pull/1976/head
Stuart Thackray 6 년 전
부모
커밋
d9adc89cf4
2개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -1
      src/rebar_git_resource.erl
  2. +6
    -1
      src/rebar_hg_resource.erl

+ 5
- 1
src/rebar_git_resource.erl 파일 보기

@ -6,11 +6,14 @@
-export([init/2,
lock/2,
download/3,
download/4,
needs_update/2,
make_vsn/2]).
%% For backward compatibilty
-export ([ download/3
]).
-include("rebar.hrl").
%% Regex used for parsing scp style remote url
@ -124,6 +127,7 @@ download(TmpDir, AppInfo, State, _) ->
{error, Error}
end.
%% For backward compatibilty
download(Dir, AppInfo, State) ->
download_(Dir, AppInfo, State).

+ 6
- 1
src/rebar_hg_resource.erl 파일 보기

@ -6,11 +6,15 @@
-export([init/2,
lock/2,
download/3,
download/4,
needs_update/2,
make_vsn/2]).
%% For backward compatibilty
-export([ download/3
]).
-include("rebar.hrl").
-spec init(atom(), rebar_state:t()) -> {ok, rebar_resource_v2:resource()}.
@ -73,6 +77,7 @@ download(TmpDir, AppInfo, State, _) ->
{error, Error}
end.
%% For backward compatibilty
download(Dir, AppInfo, State) ->
download_(Dir, AppInfo, State).

불러오는 중...
취소
저장