From 4c2d3e1f7f3c10829c454ce152877eb26f3d92ab Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 28 Jun 2010 14:55:31 -0700 Subject: [PATCH] Improved Subversion support. Homebrew will now use the svn binary pointed to by HOMEBREW_SVN if set, use a Homebrew-installed svn if present, finally falling back to the system-provided svn binary. If a formula (mplayer) requires a newer version of Subversion than what Leopard provides, it can use the "StrictSubversionDownloadStrategy" download strategy to warn the user. These changes also fix an issue with forcing exports not working on a stock Leopard subversion, but letting the user either specify a specific binary or install Subversion via Homebrew and pick that up instead. --- Library/Contributions/manpages/brew.1.md | 6 ++++++ Library/Homebrew/download_strategy.rb | 27 ++++++++++++++++++++---- Library/Homebrew/utils.rb | 2 +- share/man/man1/brew.1 | 7 ++++++ 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index b5184d055f..b33c8c3201 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -163,6 +163,12 @@ didn't include with OS X. If set, instructs Homebrew to always assume `--verbose` when running commands. + * HOMEBREW\_SVN: + When exporting from Subversion, Homebrew will use `HOMEBREW_SVN` if set, + a Homebrew-built Subversion if installed, or the system-provided binary. + + Set this to force Homebrew to use a particular svn binary. + ## SEE ALSO Homebrew Wiki: http://wiki.github.com/mxcl/homebrew/ diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 3ec36cb54f..75ae64c1eb 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -198,11 +198,30 @@ class SubversionDownloadStrategy