##// END OF EJS Templates
merge with mpm
Benoit Boissinot -
r7433:c4ce828e merge default
parent child Browse files
Show More
@@ -3,9 +3,16 b''
3 3 # Build a Mercurial RPM in place.
4 4 # Known to work on:
5 5 # - Fedora 9
6 # - Fedora 10
6 7 #
7 8 # Bryan O'Sullivan <bos@serpentine.com>
8 9
10 if hg --version > /dev/null 2>&1; then :
11 else
12 echo 'hg command not available!' 1>&2
13 exit 1
14 fi
15
9 16 root="`hg root 2>/dev/null`"
10 17 specfile=contrib/mercurial.spec
11 18
@@ -55,9 +55,6 b' lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emac'
55 55 mkdir -p $lisp_dir
56 56 install contrib/mercurial.el $lisp_dir
57 57
58 # We don't want this, do we?
59 rm -f $RPM_BUILD_ROOT%{pythonlib}/../mercurial-*-py2.5.egg-info
60
61 58 %clean
62 59 rm -rf $RPM_BUILD_ROOT
63 60
@@ -74,5 +71,6 b' rm -rf $RPM_BUILD_ROOT'
74 71 %{_bindir}/hg-viz
75 72 %{_bindir}/git-rev-tree
76 73 %{_bindir}/mercurial-convert-repo
74 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py2.5.egg-info
77 75 %{pythonlib}
78 76 %{hgext}
@@ -607,7 +607,7 b" def matcher(canonroot, cwd='', names=[],"
607 607 if inc:
608 608 dummy, inckinds, dummy = normalizepats(inc, 'glob')
609 609 incmatch = matchfn(inckinds, '(?:/|$)')
610 excmatch = lambda fn: False
610 excmatch = never
611 611 if exc:
612 612 dummy, exckinds, dummy = normalizepats(exc, 'glob')
613 613 excmatch = matchfn(exckinds, '(?:/|$)')
@@ -245,7 +245,7 b' def system_rcpath_win32():'
245 245 def user_rcpath_win32():
246 246 '''return os-specific hgrc search path to the user dir'''
247 247 userdir = os.path.expanduser('~')
248 if sys.getwindowsversion() != 2 and userdir == '~':
248 if sys.getwindowsversion()[3] != 2 and userdir == '~':
249 249 # We are on win < nt: fetch the APPDATA directory location and use
250 250 # the parent directory as the user home dir.
251 251 appdir = shell.SHGetPathFromIDList(
@@ -154,6 +154,9 b' def has_pygments():'
154 154 except ImportError:
155 155 return False
156 156
157 def has_outer_repo():
158 return matchoutput('hg root 2>&1', r'')
159
157 160 checks = {
158 161 "baz": (has_baz, "GNU Arch baz client"),
159 162 "bzr": (has_bzr, "Canonical's Bazaar client"),
@@ -169,6 +172,7 b' checks = {'
169 172 "inotify": (has_inotify, "inotify extension support"),
170 173 "lsprof": (has_lsprof, "python lsprof module"),
171 174 "mtn": (has_mtn, "monotone client (> 0.31)"),
175 "outer-repo": (has_outer_repo, "outer repo"),
172 176 "pygments": (has_pygments, "Pygments source highlighting library"),
173 177 "svn": (has_svn, "subversion client and admin tools"),
174 178 "svn-bindings": (has_svn_bindings, "subversion python bindings"),
@@ -1,6 +1,6 b''
1 1 #!/bin/sh
2 2
3 "$TESTDIR/hghave" svn svn-bindings || exit 80
3 "$TESTDIR/hghave" svn svn-bindings no-outer-repo || exit 80
4 4
5 5 fixpath()
6 6 {
@@ -1,6 +1,8 b''
1 1 #!/bin/sh
2 2 # test command parsing and dispatch
3 3
4 "$TESTDIR/hghave" no-outer-repo || exit 80
5
4 6 hg init a
5 7 cd a
6 8 echo a > a
@@ -1,6 +1,8 b''
1 1 #!/bin/sh
2 2 # Test basic extension support
3 3
4 "$TESTDIR/hghave" no-outer-repo || exit 80
5
4 6 cat > foobar.py <<EOF
5 7 import os
6 8 from mercurial import commands
@@ -1,5 +1,7 b''
1 1 #!/bin/sh
2 2
3 "$TESTDIR/hghave" no-outer-repo || exit 80
4
3 5 hg init a
4 6 cd a
5 7 echo a > a
@@ -70,6 +70,8 b''
70 70 # |/
71 71 # o (0) root
72 72
73 "$TESTDIR/hghave" no-outer-repo || exit 80
74
73 75 set -e
74 76
75 77 commit()
@@ -31,7 +31,7 b' echo % should give a 404 - file does not'
31 31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
32 32
33 33 echo % stop and restart
34 kill `cat hg.pid`
34 "$TESTDIR/killdaemons.py"
35 35 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
36 36 cat hg.pid >> $DAEMON_PIDS
37 37 # Test the access/error files are opened in append mode
@@ -20,7 +20,7 b' echo % diff removed file'
20 20 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a'
21 21
22 22 echo % set up hgweb with git diffs
23 kill `cat hg.pid`
23 "$TESTDIR/killdaemons.py"
24 24 hg serve --config 'diff.git=1' -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
25 25 cat hg.pid >> $DAEMON_PIDS
26 26
General Comments 0
You need to be logged in to leave comments. Login now