Show More
@@ -211,3 +211,57 b' updating working copy' | |||||
211 |
|
211 | |||
212 | $ hg purge --no-confirm |
|
212 | $ hg purge --no-confirm | |
213 | $ hg up --quiet babar |
|
213 | $ hg up --quiet babar | |
|
214 | ||||
|
215 | Activating a bookmark | |||
|
216 | --------------------- | |||
|
217 | (without going through the bookmark command) | |||
|
218 | ||||
|
219 | Show the activation/desactivation pattern that exist without taking the store | |||
|
220 | lock. | |||
|
221 | ||||
|
222 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
223 | = = | |||
|
224 | $ hg up bar | |||
|
225 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
226 | (activating bookmark bar) | |||
|
227 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
228 | = bar = | |||
|
229 | $ hg up . | |||
|
230 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
231 | (leaving bookmark bar) | |||
|
232 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
233 | = = | |||
|
234 | ||||
|
235 | Activating the bookmark during a transaction | |||
|
236 | ||||
|
237 | $ hg up . --quiet | |||
|
238 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
239 | = = | |||
|
240 | $ hg phase --public --rev 0 2> ../log.err & | |||
|
241 | $ $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/transaction-waiting | |||
|
242 | $ hg up bar | |||
|
243 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
244 | (activating bookmark bar) | |||
|
245 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
246 | = bar = | |||
|
247 | $ touch $TESTTMP/transaction-continue | |||
|
248 | $ wait | |||
|
249 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
250 | = bar = | |||
|
251 | ||||
|
252 | Deactivating the bookmark | |||
|
253 | ||||
|
254 | $ hg up bar --quiet | |||
|
255 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
256 | = bar = | |||
|
257 | $ hg phase --public --rev 0 2> ../log.err & | |||
|
258 | $ $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/transaction-waiting | |||
|
259 | $ hg up . | |||
|
260 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
261 | (leaving bookmark bar) | |||
|
262 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
263 | = = | |||
|
264 | $ touch $TESTTMP/transaction-continue | |||
|
265 | $ wait | |||
|
266 | $ hg log -r . -T '= {activebookmark} =\n' | |||
|
267 | = = |
General Comments 0
You need to be logged in to leave comments.
Login now