##// END OF EJS Templates
tags: take lock instead of wlock before writing hgtagsfnodes1 cache...
Pulkit Goyal -
r46005:64de86fd default
parent child Browse files
Show More
@@ -838,7 +838,7 b' class hgtagsfnodescache(object):'
838 838 repo = self._repo
839 839
840 840 try:
841 lock = repo.wlock(wait=False)
841 lock = repo.lock(wait=False)
842 842 except error.LockError:
843 843 repo.ui.log(
844 844 b'tagscache',
@@ -156,7 +156,7 b' Tag cache debug info written to blackbox'
156 156 Failure to acquire lock results in no write
157 157
158 158 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1
159 $ echo 'foo:1' > .hg/wlock
159 $ echo 'foo:1' > .hg/store/lock
160 160 $ hg identify
161 161 b9154636be93 tip
162 162 $ hg blackbox -l 6
@@ -170,7 +170,7 b' Failure to acquire lock results in no wr'
170 170 $ fnodescacheexists
171 171 no fnodes cache
172 172
173 $ rm .hg/wlock
173 $ rm .hg/store/lock
174 174
175 175 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1
176 176 $ hg identify
General Comments 0
You need to be logged in to leave comments. Login now