From e5ee9a824db5dcf1c7220ca87d9bb1652f00ec5b Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 15 Dec 2014 10:17:00 +1100 Subject: [PATCH] misc/makerelease: remove mercurial-specific special case Change-Id: I2ae40e63bc78f3b6e4eb68ccbc928368db1e606f Reviewed-on: https://go-review.googlesource.com/1535 Reviewed-by: Brad Fitzpatrick --- misc/makerelease/makerelease.go | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) 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. -- 2.50.0