From: Andrew Gerrand Date: Sun, 14 Dec 2014 23:17:00 +0000 (+1100) Subject: misc/makerelease: remove mercurial-specific special case X-Git-Tag: go1.5beta1~2628 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e5ee9a824db5dcf1c7220ca87d9bb1652f00ec5b;p=gostls13.git misc/makerelease: remove mercurial-specific special case Change-Id: I2ae40e63bc78f3b6e4eb68ccbc928368db1e606f Reviewed-on: https://go-review.googlesource.com/1535 Reviewed-by: Brad Fitzpatrick --- diff --git a/misc/makerelease/makerelease.go b/misc/makerelease/makerelease.go index 1cb8df0517..e2bc28db91 100644 --- a/misc/makerelease/makerelease.go +++ b/misc/makerelease/makerelease.go @@ -507,24 +507,11 @@ func (b *Build) extras() error { func (b *Build) get(repoPath, revision string) error { dest := filepath.Join(b.gopath, "src", filepath.FromSlash(repoPath)) - if strings.HasPrefix(repoPath, "golang.org/x/") { - // For sub-repos, fetch the old Mercurial repo; bypass "go get". - // DO NOT import this special case into the git tree. - - if err := os.MkdirAll(filepath.Dir(dest), 0755); err != nil { - return err - } - repo := strings.Replace(repoPath, "golang.org/x/", "https://code.google.com/p/go.", 1) - if _, err := b.run(b.gopath, "hg", "clone", repo, dest); err != nil { - return err - } - } else { - // Fetch the packages (without building/installing). - _, err := b.run(b.gopath, filepath.Join(b.root, "bin", "go"), - "get", "-d", repoPath+"/...") - if err != nil { - return err - } + // Fetch the packages (without building/installing). + _, err := b.run(b.gopath, filepath.Join(b.root, "bin", "go"), + "get", "-d", repoPath+"/...") + if err != nil { + return err } // Update the repo to the specified revision.