summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hg
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-03-13 18:30:59 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-03-13 18:30:59 +0100
commite74d851d692e7249dd5ee2f0e4bb7ba3ed9844e4 (patch)
tree3789ac90a352c08e1663e422282ec2403e17c7b3 /sys/src/cmd/hg
parente437b1b289354c9d390b400f1c9c215857848126 (diff)
hg: install hgweb templates
Diffstat (limited to 'sys/src/cmd/hg')
-rw-r--r--sys/src/cmd/hg/hgweb.cgi2
-rw-r--r--sys/src/cmd/hg/hgwebdir.cgi2
-rw-r--r--sys/src/cmd/hg/mercurial/localrepo.py2
-rw-r--r--sys/src/cmd/hg/mkfile4
4 files changed, 6 insertions, 4 deletions
diff --git a/sys/src/cmd/hg/hgweb.cgi b/sys/src/cmd/hg/hgweb.cgi
index b18eb48a9..3745e18c9 100644
--- a/sys/src/cmd/hg/hgweb.cgi
+++ b/sys/src/cmd/hg/hgweb.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/bin/python
#
# An example CGI script to use hgweb, edit as necessary
diff --git a/sys/src/cmd/hg/hgwebdir.cgi b/sys/src/cmd/hg/hgwebdir.cgi
index 79d86ad1f..b09b4fa88 100644
--- a/sys/src/cmd/hg/hgwebdir.cgi
+++ b/sys/src/cmd/hg/hgwebdir.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/bin/python
#
# An example CGI script to export multiple hgweb repos, edit as necessary
diff --git a/sys/src/cmd/hg/mercurial/localrepo.py b/sys/src/cmd/hg/mercurial/localrepo.py
index 85ec689f6..f6000b502 100644
--- a/sys/src/cmd/hg/mercurial/localrepo.py
+++ b/sys/src/cmd/hg/mercurial/localrepo.py
@@ -41,7 +41,7 @@ class localrepository(repo.repository):
if not os.path.isdir(self.path):
if create:
if not os.path.exists(path):
- os.mkdir(path)
+ os.makedirs(path)
os.mkdir(self.path)
requirements = ["revlogv1"]
if self.ui.configbool('format', 'usestore', True):
diff --git a/sys/src/cmd/hg/mkfile b/sys/src/cmd/hg/mkfile
index e71f8d4c8..91b120460 100644
--- a/sys/src/cmd/hg/mkfile
+++ b/sys/src/cmd/hg/mkfile
@@ -11,7 +11,9 @@ setup:V:
cp mercurial/*.c /sys/src/cmd/python/Extra/mercurial
for(i in mercurial hgext){
mkdir -p /sys/lib/python/$i
- dircp mercurial /sys/lib/python/$i
+ dircp $i /sys/lib/python/$i
}
+ mkdir -p /sys/lib/python/mercurial/templates
+ dircp templates /sys/lib/python/mercurial/templates
cp hg /rc/bin/hg
echo Now rebuild python!