]> Cypherpunks repositories - gostls13.git/commitdiff
misc/makerelease: remove mercurial-specific special case
authorAndrew Gerrand <adg@golang.org>
Sun, 14 Dec 2014 23:17:00 +0000 (10:17 +1100)
committerAndrew Gerrand <adg@golang.org>
Sun, 14 Dec 2014 23:54:15 +0000 (23:54 +0000)
Change-Id: I2ae40e63bc78f3b6e4eb68ccbc928368db1e606f
Reviewed-on: https://go-review.googlesource.com/1535
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/makerelease/makerelease.go

index 1cb8df05177c28720e52bca796c7b03989e3e279..e2bc28db913190555def2dfbf9f4ca3e5fb7ad9c 100644 (file)
@@ -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.