Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Benoit Boissinot
- Thu, 27 Nov 2008 00:35:12
Show More
contrib/buildrpm
0
+7
0
@@
-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
contrib/mercurial.spec
0
+1
-3
@@
-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}
mercurial/util.py
0
+1
-1
@@
-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 , '(?:/|$)' )
mercurial/util_win32.py
0
+1
-1
@@
-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 (
tests/hghave
0
+4
0
@@
-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"),
tests/test-convert-svn-sink
0
+1
-1
@@
-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
{
tests/test-dispatch
0
+2
0
@@
-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
tests/test-extension
0
+2
0
@@
-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
tests/test-globalopts
0
+2
0
@@
-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
tests/test-hgweb
0
+1
-1
@@
-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
tests/test-hgweb-diffs
0
+1
-1
@@
-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
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages