summaryrefslogtreecommitdiff
path: root/src/cmd/hgpatch
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/hgpatch')
-rw-r--r--src/cmd/hgpatch/main.go4
1 files changed, 2 insertions, 2 deletions
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))
}