aboutsummaryrefslogtreecommitdiff
path: root/misc/makerelease
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2014-12-15 10:17:00 +1100
committerAndrew Gerrand <adg@golang.org>2014-12-14 23:54:15 +0000
commite5ee9a824db5dcf1c7220ca87d9bb1652f00ec5b (patch)
tree232d34ff05b160e1cfeecabe44f3f872a6b70763 /misc/makerelease
parentc8bfcf5c557ea70f44cabe5a58d0909cf8ae4fb0 (diff)
downloadgo-e5ee9a824db5dcf1c7220ca87d9bb1652f00ec5b.tar.xz
misc/makerelease: remove mercurial-specific special case
Change-Id: I2ae40e63bc78f3b6e4eb68ccbc928368db1e606f Reviewed-on: https://go-review.googlesource.com/1535 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'misc/makerelease')
-rw-r--r--misc/makerelease/makerelease.go23
1 files 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.