This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assume the patched git is in git-2.2.0/, patched fast-export is at fast-export/ (git://repo.or.cz/fast-export.git) | |
The conversion command line is: | |
mkdir target | |
cd target | |
git init | |
PATH=../git-2.2.0:$PATH ../fast-export/hg-fast-export.sh -r /path/to/hg/repo --hgtags # --hgtags is very important. | |
Caveats: | |
Because during the history of go, there used to exist these two files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/runtime/os1_nacl.go b/src/runtime/os1_nacl.go | |
index 0a446c4..7b1988e 100644 | |
--- a/src/runtime/os1_nacl.go | |
+++ b/src/runtime/os1_nacl.go | |
@@ -46,11 +46,8 @@ func crash() { | |
*(*int32)(nil) = 0 | |
} | |
-//go:nosplit | |
-func getRandomData(r []byte) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 73e8a39c6f92390ffac7a2debc4f328c308a2147 Mon Sep 17 00:00:00 2001 | |
From: Shenghou Ma <minux@golang.org> | |
Date: Fri, 12 Dec 2014 16:30:15 -0500 | |
Subject: [PATCH] dashboard/builder: remove the repo export speed hack for hg | |
The builder will no longer generate a VERSION file, so we | |
can revert https://golang.org/cl/1405 once all builders | |
have updated. | |
Fixes golang/go#9296. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cmd/6g/gsubr.c b/src/cmd/6g/gsubr.c | |
index 5bd9246..dae57af 100644 | |
--- a/src/cmd/6g/gsubr.c | |
+++ b/src/cmd/6g/gsubr.c | |
@@ -1115,6 +1115,8 @@ void | |
naddr(Node *n, Addr *a, int canemitcode) | |
{ | |
Sym *s; | |
+ Node *nn; | |
+ int64 oary[10]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://golang.org/issue/9410 | |
To be used with https://github.com/minux/swig/tree/go1.5. | |
diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go | |
index e201f29..3ae2f86 100644 | |
--- a/src/cmd/go/build.go | |
+++ b/src/cmd/go/build.go | |
@@ -1827,7 +1827,7 @@ func (gcToolchain) ld(b *builder, p *Package, out string, allactions []*action, | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/git-codereview/api.go b/git-codereview/api.go | |
index ac61cba..4a67f33 100644 | |
--- a/git-codereview/api.go | |
+++ b/git-codereview/api.go | |
@@ -41,15 +41,20 @@ func loadGerritOrigin() { | |
} | |
// Gerrit must be set as Git's origin remote. | |
- origin := getOutput("git", "config", "remote.origin.url") | |
+ origin := getOutput("git", "config", "remote.origin.pushurl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cmd/pack/pack.go b/src/cmd/pack/pack.go | |
index f65ae0c..90152af 100644 | |
--- a/src/cmd/pack/pack.go | |
+++ b/src/cmd/pack/pack.go | |
@@ -426,20 +426,18 @@ func readPkgdef(file string) (data []byte, err error) { | |
// Read from file, collecting header for __.PKGDEF. | |
// The header is from the beginning of the file until a line | |
// containing just "!". The first line must begin with "go object ". | |
- rbuf := bufio.NewReader(f) | |
var wbuf bytes.Buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cmd/dist/util.go b/src/cmd/dist/util.go | |
index cae5d69..7acacd2 100644 | |
--- a/src/cmd/dist/util.go | |
+++ b/src/cmd/dist/util.go | |
@@ -429,8 +429,11 @@ func main() { | |
case strings.Contains(out, "ppc64"): | |
gohostarch = "ppc64" | |
case gohostos == "darwin": | |
- if strings.Contains(run("", CheckExit, "uname", "-v"), "RELEASE_ARM_") { | |
+ ver := run("", CheckExit, "uname", "-v") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uid.go | |
package main | |
import "syscall" | |
func main() { println(syscall.Getuid()) } | |
result of calling strace -f ./uid | |
execve("./uid", ["./uid"], [/* 19 vars */]) = 0 | |
rt_sigaction(SIGILL, {0x1d2cc, [RT_1], 0}, {SIG_DFL, [], 0}, 8) = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Building C bootstrap tool. | |
cmd/dist | |
# Building compilers and Go bootstrap tool for host, linux/arm. | |
lib9 | |
libbio | |
libmach | |
misc/pprof | |
cmd/addr2line | |
cmd/cov |
OlderNewer