comparison tests/test-blackbox.t @ 26028:6fbe35588433 stable

update: wlock the repo for the whole 'hg update' command The update command is touching the repository and should lock it for the length of its operations. Equally importantly, it should lock the repository when it is writing bookmarks. It wasn't doing so until now, leaving doors open for all kinds of drunk beaver parties. This results in some minor tests changes, and the fixing of a couple of bugs from race conditions. Code does not receive any changes beside extra indentation.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 11 Aug 2015 16:26:12 -0700
parents a698e088ad29
children e8f9dffca36f
comparison
equal deleted inserted replaced
26027:7b7e25a85f63 26028:6fbe35588433
117 $ echo '[extensions]' >> .hg/hgrc 117 $ echo '[extensions]' >> .hg/hgrc
118 $ echo 'eol=' >> .hg/hgrc 118 $ echo 'eol=' >> .hg/hgrc
119 $ echo '[hooks]' >> .hg/hgrc 119 $ echo '[hooks]' >> .hg/hgrc
120 $ echo 'update = echo hooked' >> .hg/hgrc 120 $ echo 'update = echo hooked' >> .hg/hgrc
121 $ hg update 121 $ hg update
122 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
122 hooked 123 hooked
123 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
124 $ hg blackbox -l 5 124 $ hg blackbox -l 5
125 1970/01/01 00:00:00 bob> update 125 1970/01/01 00:00:00 bob> update
126 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 0 tags 126 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 0 tags
127 1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob) 127 1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
128 1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob) 128 1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob)