goprotobuf: update to go 1 import strings

R=dsymonds
CC=golang-dev
http://codereview.appspot.com/5496065
diff --git a/compiler/descriptor/Makefile b/compiler/descriptor/Makefile
index ae052d6..3b8695b 100644
--- a/compiler/descriptor/Makefile
+++ b/compiler/descriptor/Makefile
@@ -31,7 +31,7 @@
 
 include $(GOROOT)/src/Make.inc
 
-TARG=goprotobuf.googlecode.com/hg/compiler/descriptor
+TARG=code.google.com/p/goprotobuf/compiler/descriptor
 GOFILES=\
 	descriptor.pb.go\
 
diff --git a/compiler/descriptor/descriptor.pb.go b/compiler/descriptor/descriptor.pb.go
index b5b402c..8205175 100644
--- a/compiler/descriptor/descriptor.pb.go
+++ b/compiler/descriptor/descriptor.pb.go
@@ -3,14 +3,13 @@
 
 package google_protobuf
 
-import proto "goprotobuf.googlecode.com/hg/proto"
+import proto "code.google.com/p/goprotobuf/proto"
 import "math"
 
 // Reference proto, math & os imports to suppress error if they are not otherwise used.
 var _ = proto.GetString
 var _ = math.Inf
 
-
 type FieldDescriptorProto_Type int32
 
 const (
diff --git a/compiler/generator/Makefile b/compiler/generator/Makefile
index c19eeb0..8903771 100644
--- a/compiler/generator/Makefile
+++ b/compiler/generator/Makefile
@@ -31,7 +31,7 @@
 
 include $(GOROOT)/src/Make.inc
 
-TARG=goprotobuf.googlecode.com/hg/compiler/generator
+TARG=code.google.com/p/goprotobuf/compiler/generator
 GOFILES=\
 	generator.go\
 
diff --git a/compiler/generator/generator.go b/compiler/generator/generator.go
index 442d3fc..501e58f 100644
--- a/compiler/generator/generator.go
+++ b/compiler/generator/generator.go
@@ -48,9 +48,9 @@
 	"strconv"
 	"strings"
 
-	descriptor "goprotobuf.googlecode.com/hg/compiler/descriptor"
-	plugin "goprotobuf.googlecode.com/hg/compiler/plugin"
-	"goprotobuf.googlecode.com/hg/proto"
+	descriptor "code.google.com/p/goprotobuf/compiler/descriptor"
+	plugin "code.google.com/p/goprotobuf/compiler/plugin"
+	"code.google.com/p/goprotobuf/proto"
 )
 
 // A Plugin provides functionality to add to the output during Go code generation,
@@ -403,6 +403,7 @@
 
 // For each input file, the unique package name to use, underscored.
 var uniquePackageName = make(map[*descriptor.FileDescriptorProto]string)
+
 // Package names already registered.  Key is the name from the .proto file;
 // value is the name that appears in the generated code.
 var pkgNamesInUse = make(map[string]bool)
@@ -814,7 +815,7 @@
 	// do, which is tricky when there's a plugin, just import it and
 	// reference it later. The same argument applies to the math package,
 	// for handling bit patterns for floating-point numbers.
-	g.P("import " + g.ProtoPkg + " " + Quote(g.ImportPrefix+"goprotobuf.googlecode.com/hg/proto"))
+	g.P("import " + g.ProtoPkg + " " + Quote(g.ImportPrefix+"code.google.com/p/goprotobuf/proto"))
 	g.P(`import "math"`)
 	for _, s := range g.file.Dependency {
 		fd := g.fileByName(s)
diff --git a/compiler/main.go b/compiler/main.go
index 9fd6070..63e826b 100644
--- a/compiler/main.go
+++ b/compiler/main.go
@@ -43,8 +43,8 @@
 	"io/ioutil"
 	"os"
 
-	"goprotobuf.googlecode.com/hg/proto"
-	"goprotobuf.googlecode.com/hg/compiler/generator"
+	"code.google.com/p/goprotobuf/compiler/generator"
+	"code.google.com/p/goprotobuf/proto"
 )
 
 func main() {
diff --git a/compiler/plugin/Makefile b/compiler/plugin/Makefile
index e20482d..fcb51e3 100644
--- a/compiler/plugin/Makefile
+++ b/compiler/plugin/Makefile
@@ -31,7 +31,7 @@
 
 include $(GOROOT)/src/Make.inc
 
-TARG=goprotobuf.googlecode.com/hg/compiler/plugin
+TARG=code.google.com/p/goprotobuf/compiler/plugin
 GOFILES=\
 	plugin.pb.go\
 
@@ -47,7 +47,7 @@
 	cd $(HOME)/protobuf-2.3.0/src && \
 	protoc --go_out=. ./google/protobuf/compiler/plugin.proto && \
 	cat ./google/protobuf/compiler/plugin.pb.go | \
-		sed '/^import/s;google/protobuf/descriptor.pb;goprotobuf.googlecode.com/hg/compiler/descriptor;' >$(GOROOT)/src/pkg/goprotobuf.googlecode.com/hg/compiler/plugin/plugin.pb.go
+		sed '/^import/s;google/protobuf/descriptor.pb;code.google.com/p/goprotobuf/compiler/descriptor;' >$(GOROOT)/src/pkg/code.google.com/p/goprotobuf/compiler/plugin/plugin.pb.go
 
 restore:
 	cp plugin.pb.golden plugin.pb.go
diff --git a/compiler/plugin/plugin.pb.go b/compiler/plugin/plugin.pb.go
index f85b5c6..4954cad 100644
--- a/compiler/plugin/plugin.pb.go
+++ b/compiler/plugin/plugin.pb.go
@@ -3,10 +3,10 @@
 
 package google_protobuf_compiler
 
-import proto "goprotobuf.googlecode.com/hg/proto"
+import proto "code.google.com/p/goprotobuf/proto"
 import "math"
 
-import google_protobuf "goprotobuf.googlecode.com/hg/compiler/descriptor"
+import google_protobuf "code.google.com/p/goprotobuf/compiler/descriptor"
 
 // Reference proto, math & os imports to suppress error if they are not otherwise used.
 var _ = proto.GetString
diff --git a/compiler/testdata/extension_test.go b/compiler/testdata/extension_test.go
index fd9b5a5..8512810 100644
--- a/compiler/testdata/extension_test.go
+++ b/compiler/testdata/extension_test.go
@@ -38,7 +38,7 @@
 	"regexp"
 	"testing"
 
-	"goprotobuf.googlecode.com/hg/proto"
+	"code.google.com/p/goprotobuf/proto"
 	base "extension_base.pb"
 	user "extension_user.pb"
 )
diff --git a/proto/Makefile b/proto/Makefile
index 8f9380b..6d72e37 100644
--- a/proto/Makefile
+++ b/proto/Makefile
@@ -32,7 +32,7 @@
 
 include $(GOROOT)/src/Make.inc
 
-TARG=goprotobuf.googlecode.com/hg/proto
+TARG=code.google.com/p/goprotobuf/proto
 GOFILES=\
 	clone.go\
 	decode.go\
diff --git a/proto/all_test.go b/proto/all_test.go
index 615e88a..1c7e84f 100644
--- a/proto/all_test.go
+++ b/proto/all_test.go
@@ -29,7 +29,6 @@
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-
 package proto_test
 
 import (
@@ -42,7 +41,7 @@
 	"testing"
 
 	. "./testdata/_obj/test_proto"
-	. "goprotobuf.googlecode.com/hg/proto"
+	. "code.google.com/p/goprotobuf/proto"
 )
 
 var globalO *Buffer
diff --git a/proto/clone_test.go b/proto/clone_test.go
index c9c4a2f..1325938 100644
--- a/proto/clone_test.go
+++ b/proto/clone_test.go
@@ -35,7 +35,7 @@
 	"log"
 	"testing"
 
-	"goprotobuf.googlecode.com/hg/proto"
+	"code.google.com/p/goprotobuf/proto"
 
 	pb "./testdata/_obj/test_proto"
 )
diff --git a/proto/equal_test.go b/proto/equal_test.go
index fd347af..8dd5d29 100644
--- a/proto/equal_test.go
+++ b/proto/equal_test.go
@@ -35,8 +35,8 @@
 	"log"
 	"testing"
 
-	. "goprotobuf.googlecode.com/hg/proto"
 	pb "./testdata/_obj/test_proto"
+	. "code.google.com/p/goprotobuf/proto"
 )
 
 // Four identical base messages.
diff --git a/proto/lib.go b/proto/lib.go
index 498cb75..a6949df 100644
--- a/proto/lib.go
+++ b/proto/lib.go
@@ -83,7 +83,7 @@
 
 		package example
 
-		import "goprotobuf.googlecode.com/hg/proto"
+		import "code.google.com/p/goprotobuf/proto"
 
 		type FOO int32
 		const (
@@ -134,7 +134,7 @@
 		import (
 			"log"
 
-			"goprotobuf.googlecode.com/hg/proto"
+			"code.google.com/p/goprotobuf/proto"
 			"./example.pb"
 		)
 
diff --git a/proto/text_parser_test.go b/proto/text_parser_test.go
index ea14f06..cb73025 100644
--- a/proto/text_parser_test.go
+++ b/proto/text_parser_test.go
@@ -33,7 +33,7 @@
 
 import (
 	. "./testdata/_obj/test_proto"
-	. "goprotobuf.googlecode.com/hg/proto"
+	. "code.google.com/p/goprotobuf/proto"
 	"reflect"
 	"testing"
 )
diff --git a/proto/text_test.go b/proto/text_test.go
index 8b55b84..18c0a5f 100644
--- a/proto/text_test.go
+++ b/proto/text_test.go
@@ -36,7 +36,7 @@
 	"strings"
 	"testing"
 
-	"goprotobuf.googlecode.com/hg/proto"
+	"code.google.com/p/goprotobuf/proto"
 
 	pb "./testdata/_obj/test_proto"
 )