##// END OF EJS Templates
tests: append glob to filename output when required for windows...
Simon Heimberg -
r18719:9ad13296 default
parent child Browse files
Show More
@@ -1,79 +1,79 b''
1 setup
1 setup
2 $ cat > mock.py <<EOF
2 $ cat > mock.py <<EOF
3 > from mercurial import util
3 > from mercurial import util
4 > import getpass
4 > import getpass
5 >
5 >
6 > def makedate():
6 > def makedate():
7 > return 0, 0
7 > return 0, 0
8 > def getuser():
8 > def getuser():
9 > return 'bob'
9 > return 'bob'
10 > # mock the date and user apis so the output is always the same
10 > # mock the date and user apis so the output is always the same
11 > def uisetup(ui):
11 > def uisetup(ui):
12 > util.makedate = makedate
12 > util.makedate = makedate
13 > getpass.getuser = getuser
13 > getpass.getuser = getuser
14 > EOF
14 > EOF
15 $ cat >> $HGRCPATH <<EOF
15 $ cat >> $HGRCPATH <<EOF
16 > [extensions]
16 > [extensions]
17 > blackbox=
17 > blackbox=
18 > mock=`pwd`/mock.py
18 > mock=`pwd`/mock.py
19 > EOF
19 > EOF
20 $ hg init blackboxtest
20 $ hg init blackboxtest
21 $ cd blackboxtest
21 $ cd blackboxtest
22
22
23 command, exit codes, and duration
23 command, exit codes, and duration
24
24
25 $ echo a > a
25 $ echo a > a
26 $ hg add a
26 $ hg add a
27 $ hg blackbox
27 $ hg blackbox
28 1970/01/01 00:00:00 bob> add a
28 1970/01/01 00:00:00 bob> add a
29 1970/01/01 00:00:00 bob> add exited 0 after * seconds (glob)
29 1970/01/01 00:00:00 bob> add exited 0 after * seconds (glob)
30
30
31 incoming change tracking
31 incoming change tracking
32
32
33 create two heads to verify that we only see one change in the log later
33 create two heads to verify that we only see one change in the log later
34 $ hg commit -ma
34 $ hg commit -ma
35 $ hg up null
35 $ hg up null
36 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
36 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
37 $ echo b > b
37 $ echo b > b
38 $ hg commit -Amb
38 $ hg commit -Amb
39 adding b
39 adding b
40 created new head
40 created new head
41
41
42 clone, commit, pull
42 clone, commit, pull
43 $ hg clone . ../blackboxtest2
43 $ hg clone . ../blackboxtest2
44 updating to branch default
44 updating to branch default
45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
46 $ echo c > c
46 $ echo c > c
47 $ hg commit -Amc
47 $ hg commit -Amc
48 adding c
48 adding c
49 $ cd ../blackboxtest2
49 $ cd ../blackboxtest2
50 $ hg pull
50 $ hg pull
51 pulling from $TESTTMP/blackboxtest
51 pulling from $TESTTMP/blackboxtest (glob)
52 searching for changes
52 searching for changes
53 adding changesets
53 adding changesets
54 adding manifests
54 adding manifests
55 adding file changes
55 adding file changes
56 added 1 changesets with 1 changes to 1 files
56 added 1 changesets with 1 changes to 1 files
57 (run 'hg update' to get a working copy)
57 (run 'hg update' to get a working copy)
58 $ hg blackbox -l 3
58 $ hg blackbox -l 3
59 1970/01/01 00:00:00 bob> pull
59 1970/01/01 00:00:00 bob> pull
60 1970/01/01 00:00:00 bob> 1 incoming changes - new heads: d02f48003e62 (glob)
60 1970/01/01 00:00:00 bob> 1 incoming changes - new heads: d02f48003e62 (glob)
61 1970/01/01 00:00:00 bob> pull exited None after * seconds (glob)
61 1970/01/01 00:00:00 bob> pull exited None after * seconds (glob)
62
62
63 extension and python hooks - use the eol extension for a pythonhook
63 extension and python hooks - use the eol extension for a pythonhook
64
64
65 $ echo '[extensions]' >> .hg/hgrc
65 $ echo '[extensions]' >> .hg/hgrc
66 $ echo 'eol=' >> .hg/hgrc
66 $ echo 'eol=' >> .hg/hgrc
67 $ echo '[hooks]' >> .hg/hgrc
67 $ echo '[hooks]' >> .hg/hgrc
68 $ echo 'update = echo hooked' >> .hg/hgrc
68 $ echo 'update = echo hooked' >> .hg/hgrc
69 $ hg update
69 $ hg update
70 hooked
70 hooked
71 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
71 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
72 $ hg blackbox -l 4
72 $ hg blackbox -l 4
73 1970/01/01 00:00:00 bob> update
73 1970/01/01 00:00:00 bob> update
74 1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
74 1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
75 1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob)
75 1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob)
76 1970/01/01 00:00:00 bob> update exited False after * seconds (glob)
76 1970/01/01 00:00:00 bob> update exited False after * seconds (glob)
77
77
78 cleanup
78 cleanup
79 $ cd ..
79 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now