From 50104cc32a498f7517a51c8dc93106c51c7a54b4 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Wed, 20 Apr 2011 15:44:41 +0200 Subject: Imported Upstream version 2011.03.07.1 --- src/cmd/hgpatch/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/hgpatch') diff --git a/src/cmd/hgpatch/main.go b/src/cmd/hgpatch/main.go index bd4b563f9..2dcb5234c 100644 --- a/src/cmd/hgpatch/main.go +++ b/src/cmd/hgpatch/main.go @@ -14,7 +14,7 @@ import ( "io/ioutil" "os" "patch" - "path" + "path/filepath" "sort" "strings" ) @@ -186,7 +186,7 @@ func main() { // make parent directory for name, if necessary func makeParent(name string) { - parent, _ := path.Split(name) + parent, _ := filepath.Split(name) chk(mkdirAll(parent, 0755)) } -- cgit v1.2.3