Show More
@@ -45,7 +45,7 b' clone, commit, pull' | |||
|
45 | 45 | (run 'hg update' to get a working copy) |
|
46 | 46 | $ hg blackbox -l 5 |
|
47 | 47 | 1970/01/01 00:00:00 bob (*)> pull (glob) |
|
48 |
1970/01/01 00:00:00 bob (*)> updated served branch cache in |
|
|
48 | 1970/01/01 00:00:00 bob (*)> updated served branch cache in * seconds (glob) | |
|
49 | 49 | 1970/01/01 00:00:00 bob (*)> wrote served branch cache with 1 labels and 2 nodes (glob) |
|
50 | 50 | 1970/01/01 00:00:00 bob (*)> 1 incoming changes - new heads: d02f48003e62 (glob) |
|
51 | 51 | 1970/01/01 00:00:00 bob (*)> pull exited 0 after * seconds (glob) |
@@ -55,10 +55,10 b' we must not cause a failure if we cannot' | |||
|
55 | 55 | $ hg rollback |
|
56 | 56 | repository tip rolled back to revision 1 (undo pull) |
|
57 | 57 | |
|
58 | #if unix-permissions no-root | |
|
59 |
$ |
|
|
58 | $ mv .hg/blackbox.log .hg/blackbox.log- | |
|
59 | $ mkdir .hg/blackbox.log | |
|
60 | 60 | $ hg --debug incoming |
|
61 |
warning: cannot write to blackbox.log: |
|
|
61 | warning: cannot write to blackbox.log: * (glob) | |
|
62 | 62 | comparing with $TESTTMP/blackboxtest (glob) |
|
63 | 63 | query 1; heads |
|
64 | 64 | searching for changes |
@@ -77,7 +77,6 b' we must not cause a failure if we cannot' | |||
|
77 | 77 | c |
|
78 | 78 | |
|
79 | 79 | |
|
80 | #endif | |
|
81 | 80 | $ hg pull |
|
82 | 81 | pulling from $TESTTMP/blackboxtest (glob) |
|
83 | 82 | searching for changes |
@@ -87,14 +86,14 b' we must not cause a failure if we cannot' | |||
|
87 | 86 | added 1 changesets with 1 changes to 1 files |
|
88 | 87 | (run 'hg update' to get a working copy) |
|
89 | 88 | |
|
90 |
a failure reading from the log is f |
|
|
91 | #if unix-permissions no-root | |
|
89 | a failure reading from the log is fatal | |
|
90 | ||
|
92 | 91 | $ hg blackbox -l 3 |
|
93 |
abort: |
|
|
92 | abort: *$TESTTMP/blackboxtest2/.hg/blackbox.log* (glob) | |
|
94 | 93 | [255] |
|
95 | 94 | |
|
96 |
$ |
|
|
97 | #endif | |
|
95 | $ rmdir .hg/blackbox.log | |
|
96 | $ mv .hg/blackbox.log- .hg/blackbox.log | |
|
98 | 97 |
|
|
99 | 98 | backup bundles get logged |
|
100 | 99 | |
@@ -108,7 +107,7 b' backup bundles get logged' | |||
|
108 | 107 | $ hg blackbox -l 5 |
|
109 | 108 | 1970/01/01 00:00:00 bob (*)> strip tip (glob) |
|
110 | 109 | 1970/01/01 00:00:00 bob (*)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) |
|
111 |
1970/01/01 00:00:00 bob (*)> updated base branch cache in |
|
|
110 | 1970/01/01 00:00:00 bob (*)> updated base branch cache in * seconds (glob) | |
|
112 | 111 | 1970/01/01 00:00:00 bob (*)> wrote base branch cache with 1 labels and 2 nodes (glob) |
|
113 | 112 | 1970/01/01 00:00:00 bob (*)> strip tip exited 0 after * seconds (glob) |
|
114 | 113 | |
@@ -142,6 +141,39 b' log rotation' | |||
|
142 | 141 | .hg/blackbox.log |
|
143 | 142 | .hg/blackbox.log.1 |
|
144 | 143 | .hg/blackbox.log.2 |
|
144 | $ cd .. | |
|
145 | ||
|
146 | $ hg init blackboxtest3 | |
|
147 | $ cd blackboxtest3 | |
|
148 | $ hg blackbox | |
|
149 | $ mv .hg/blackbox.log .hg/blackbox.log- | |
|
150 | $ mkdir .hg/blackbox.log | |
|
151 | $ sed -e 's/\(.*test1.*\)/#\1/; s#\(.*commit2.*\)#os.rmdir(".hg/blackbox.log")\nos.rename(".hg/blackbox.log-", ".hg/blackbox.log")\n\1#' $TESTDIR/test-dispatch.py > ../test-dispatch.py | |
|
152 | $ python ../test-dispatch.py | |
|
153 | running: add foo | |
|
154 | result: 0 | |
|
155 | running: commit -m commit1 -d 2000-01-01 foo | |
|
156 | result: None | |
|
157 | running: commit -m commit2 -d 2000-01-02 foo | |
|
158 | result: None | |
|
159 | running: log -r 0 | |
|
160 | changeset: 0:0e4634943879 | |
|
161 | user: test | |
|
162 | date: Sat Jan 01 00:00:00 2000 +0000 | |
|
163 | summary: commit1 | |
|
164 | ||
|
165 | result: None | |
|
166 | running: log -r tip | |
|
167 | changeset: 1:45589e459b2e | |
|
168 | tag: tip | |
|
169 | user: test | |
|
170 | date: Sun Jan 02 00:00:00 2000 +0000 | |
|
171 | summary: commit2 | |
|
172 | ||
|
173 | result: None | |
|
174 | $ hg blackbox | |
|
175 | 1970/01/01 00:00:00 bob (*)> blackbox (glob) | |
|
176 | 1970/01/01 00:00:00 bob (*)> blackbox exited 0 after * seconds (glob) | |
|
145 | 177 | |
|
146 | 178 | cleanup |
|
147 | 179 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now