Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Benoit Boissinot
- Fri, 20 Nov 2009 01:34:56
Show More
hgext/inotify/server.py
0
+6
-1
@@
-849,9
+849,14
b' def start(ui, dirstate, root, opts):'
849
finally :
849
finally :
850
self . master . shutdown ()
850
self . master . shutdown ()
851
851
852
runargs = None
853
if 'inserve' not in sys . argv :
852
if 'inserve' not in sys . argv :
854
runargs = [ sys . argv [ 0 ], 'inserve' , '-R' , root ]
853
runargs = [ sys . argv [ 0 ], 'inserve' , '-R' , root ]
854
else :
855
runargs = sys . argv [:]
856
857
pidfile = ui . config ( 'inotify' , 'pidfile' )
858
if opts [ 'daemon' ] and pidfile is not None and 'pid-file' not in runargs :
859
runargs . append ( "--pid-file= %s " % pidfile )
855
860
856
service = service ()
861
service = service ()
857
logfile = ui . config ( 'inotify' , 'log' )
862
logfile = ui . config ( 'inotify' , 'log' )
mercurial/cmdutil.py
0
+1
-1
@@
-571,7
+571,7
b' def service(opts, parentfn=None, initfn='
571
if parentfn :
571
if parentfn :
572
return parentfn ( pid )
572
return parentfn ( pid )
573
else :
573
else :
574
os._exit(0)
574
return
575
575
576
if initfn :
576
if initfn :
577
initfn ()
577
initfn ()
tests/test-inotify
0
+14
-1
@@
-2,7
+2,8
b''
2
2
3
"$TESTDIR/hghave" inotify || exit 80
3
"$TESTDIR/hghave" inotify || exit 80
4
4
5
hg init
5
hg init repo1
6
cd repo1
6
7
7
touch a b c d e
8
touch a b c d e
8
mkdir dir
9
mkdir dir
@@
-10,10
+11,22
b' mkdir dir/bar'
10
touch dir/x dir/y dir/bar/foo
11
touch dir/x dir/y dir/bar/foo
11
12
12
hg ci -Am m
13
hg ci -Am m
14
cd ..
15
hg clone repo1 repo2
13
16
14
echo "[extensions]" >> $HGRCPATH
17
echo "[extensions]" >> $HGRCPATH
15
echo "inotify=" >> $HGRCPATH
18
echo "inotify=" >> $HGRCPATH
16
19
20
cd repo2
21
echo b >> a
22
# check that daemon started automatically works correctly
23
# and make sure that inotify.pidfile works
24
hg --config "inotify.pidfile=../hg2.pid" status
25
26
# make sure that pidfile worked. Output should be silent.
27
kill `cat ../hg2.pid`
28
29
cd ../repo1
17
echo % inserve
30
echo % inserve
18
hg inserve -d --pid-file=hg.pid
31
hg inserve -d --pid-file=hg.pid
19
cat hg.pid >> "$DAEMON_PIDS"
32
cat hg.pid >> "$DAEMON_PIDS"
tests/test-inotify-dirty-dirstate
0
+3
-3
@@
-20,10
+20,10
b' hg ci -m foo'
20
20
21
cd ..
21
cd ..
22
22
23
hg --config "extensions.inotify=!" clone test test2
23
hg --config "inotify.pidfile=../hg2.pid " clone test test2
24
cat ../hg2.pid >> "$DAEMON_PIDS"
25
24
cd test2
26
cd test2
25
hg inserve -d --pid-file=../hg2.pid
26
cat ../hg2.pid >> "$DAEMON_PIDS"
27
echo bar > bar
27
echo bar > bar
28
hg add
28
hg add
29
hg ci -m bar
29
hg ci -m bar
tests/test-inotify-issue1208.out
0
+1
0
@@
-1,5
+1,6
b''
1
% fail
1
% fail
2
abort: could not start server: File exists
2
abort: could not start server: File exists
3
could not talk to new inotify server: No such file or directory
3
abort: could not start server: File exists
4
abort: could not start server: File exists
4
% inserve
5
% inserve
5
% status
6
% status
tests/test-inotify.out
0
+3
0
@@
-6,6
+6,9
b' adding dir/bar/foo'
6
adding dir/x
6
adding dir/x
7
adding dir/y
7
adding dir/y
8
adding e
8
adding e
9
updating to branch default
10
8 files updated, 0 files merged, 0 files removed, 0 files unresolved
11
M a
9
% inserve
12
% inserve
10
? hg.pid
13
? hg.pid
11
% clean
14
% clean
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