Use peg revision instead of operative revision for svn checkouts; fixes https://trac.macports.org/ticket/20777.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@60573 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Ryan Schmidt
2009-11-16 00:32:27 +00:00
parent e58ad2bc4a
commit 21ea10ad95
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -5,6 +5,10 @@
Release 1.9.0 (unreleased):
- svn checkouts now use peg revisions instead of operative revisions,
so they'll continue to work if a repository gets reorganized
(#20777, ryandesign)
- Use CommonCrypto/CommonDigest instead of OpenSSL libcrypto. (toby)
- Add SHA256 checksums in addition to MD5, SHA1 and RIPEMD160. (afb)
+6 -2
View File
@@ -533,11 +533,15 @@ proc portfetch::cvsfetch {args} {
# Perform an svn fetch
proc portfetch::svnfetch {args} {
global svn.args svn.revision svn.method
global svn.args svn.method svn.revision svn.url
if {[regexp {\s} ${svn.url}]} {
return -code error [msgcat::mc "Subversion URL cannot contain whitespace"]
}
set svn.args "${svn.method} ${svn.args}"
if {[string length ${svn.revision}]} {
set svn.args "${svn.args} -r ${svn.revision}"
append svn.url "@${svn.revision}"
}
if {[catch {command_exec svn "" "2>&1"} result]} {