# HG changeset patch
# User Jeff Sickel <[email protected]>
# Date 1370288383 18000
# Mon Jun 03 14:39:43 2013 -0500
# Branch stable
# Node ID 876e02936c16211a672cbc1e8e2edfa8c88565ce
# Parent cceaf7af4c9e9e6fa2dbfdcfe9856c5da69c4ffd
imported patch plan9
diff -r cceaf7af4c9e -r 876e02936c16 contrib/plan9/9mail
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/plan9/9mail Mon Jun 03 14:39:43 2013 -0500
@@ -0,0 +1,26 @@
+#!/bin/rc
+# 9mail - Mercurial email wrapper for upas/marshal
+
+fn usage {
+ echo >[1=2] usage: mercurial/9mail -f from to [cc]
+ exit usage
+}
+
+from=()
+cc=()
+to=()
+
+switch($1){
+case -f
+ from=$2
+case *
+ usage
+}
+
+to=($3)
+if(~ $#* 4)
+ cc=(-C $4)
+
+upasname=$from
+upas/marshal $cc $to
+
diff -r cceaf7af4c9e -r 876e02936c16 contrib/plan9/hgrc.d/9diff.rc
--- a/contrib/plan9/hgrc.d/9diff.rc Sat Jun 01 17:09:41 2013 -0500
+++ b/contrib/plan9/hgrc.d/9diff.rc Mon Jun 03 14:39:43 2013 -0500
@@ -4,4 +4,4 @@
extdiff =
[extdiff]
-9diff = 9diff -cm $parent $child $root
+9diff = /bin/mercurial/9diff -cm $parent $child $root
diff -r cceaf7af4c9e -r 876e02936c16 contrib/plan9/hgrc.d/9mail.rc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/plan9/hgrc.d/9mail.rc Mon Jun 03 14:39:43 2013 -0500
@@ -0,0 +1,4 @@
+# The 9mail to support patchbomb and other email wrappers
+[email]
+method = /bin/mercurial/9mail
+
diff -r cceaf7af4c9e -r 876e02936c16 contrib/plan9/mkfile
--- a/contrib/plan9/mkfile Sat Jun 01 17:09:41 2013 -0500
+++ b/contrib/plan9/mkfile Mon Jun 03 14:39:43 2013 -0500
@@ -3,8 +3,6 @@
PYTHON=python
PYTHONBIN=/rc/bin
-SH=ape/psh
-
PURE=--pure
ROOT=../..
@@ -15,23 +13,28 @@
build:VQ:
@{
cd $ROOT
- $SH -c '$PYTHON setup.py $PURE build_py build_scripts'
+ $PYTHON setup.py $PURE build_py build_scripts
}
clean:VQ:
@{
cd $ROOT
- $SH -c '$PYTHON setup.py $PURE clean --all'
+ $PYTHON setup.py $PURE clean --all
+ rm -f */*.pyc
+ rm mercurial/__version__.py
}
install:VQ: build
@{
cd $ROOT
- $SH -c '$PYTHON setup.py $PURE install \
+ $PYTHON setup.py $PURE install \
+ --prefix /sys \
--install-scripts $PYTHONBIN \
--skip-build \
- --force'
+ --force
}
mkdir -p /lib/mercurial/hgrc.d
- dircp hgrc.d /lib/mercurial/hgrc.d/
- cp 9diff /rc/bin/
+ mkdir -p /rc/bin/mercurial
+ dircp hgrc.d /lib/mercurial/hgrc.d
+ cp -x 9diff /rc/bin/mercurial
+ cp -x 9mail /rc/bin/mercurial
diff -r cceaf7af4c9e -r 876e02936c16 contrib/plan9/proto
--- a/contrib/plan9/proto Sat Jun 01 17:09:41 2013 -0500
+++ b/contrib/plan9/proto Mon Jun 03 14:39:43 2013 -0500
@@ -5,19 +5,20 @@
factotum.rc - sys sys
rc - sys sys
bin - sys sys
- 9diff - sys sys
+ mercurial - sys sys
+ 9diff - sys sys
+ 9mail - sys sys
hg - sys sys
sys - sys sys
lib - sys sys
- python - sys sys
+ python2.7 - sys sys
lib - sys sys
- python2.5 - sys sys
- site-packages - sys sys
- hgext - sys sys
- + - sys sys
- mercurial - sys sys
- + - sys sys
- mercurial-VERSION-py2.5.egg-info - sys sys
+ site-packages - sys sys
+ hgext - sys sys
+ + - sys sys
+ mercurial - sys sys
+ + - sys sys
+ mercurial-VERSION-py2.7.egg-info - sys sys
src - sys sys
cmd - sys sys
hg - sys sys
diff -r cceaf7af4c9e -r 876e02936c16 hgext/factotum.py
--- a/hgext/factotum.py Sat Jun 01 17:09:41 2013 -0500
+++ b/hgext/factotum.py Mon Jun 03 14:39:43 2013 -0500
@@ -101,7 +101,7 @@
user, passwd = auth.get('username'), auth.get('password')
if not user or not passwd:
if not prefix:
- prefix = '*'
+ prefix = realm.split(' ')[0].lower()
params = 'service=%s prefix=%s' % (_service, prefix)
if user:
params = '%s user=%s' % (params, user)
diff -r cceaf7af4c9e -r 876e02936c16 setup.py
--- a/setup.py Sat Jun 01 17:09:41 2013 -0500
+++ b/setup.py Mon Jun 03 14:39:43 2013 -0500
@@ -129,7 +129,7 @@
py2exeloaded = False
def runcmd(cmd, env):
- if sys.platform == 'plan9':
+ if sys.platform == 'plan9' and (sys.version_info[0] == 2 and sys.version_info[1] < 7):
# subprocess kludge to work around issues in half-baked Python
# ports, notably bichued/python:
_, out, err = os.popen3(cmd)
|