##// END OF EJS Templates
tags: explicitly log which tags cache file is being written...
Gregory Szorc -
r24763:a698e088 default
parent child Browse files
Show More
@@ -355,13 +355,14 b' def _readtagcache(ui, repo):'
355 355 return (repoheads, cachefnode, valid, None, True)
356 356
357 357 def _writetagcache(ui, repo, valid, cachetags):
358 filename = _filename(repo)
358 359 try:
359 cachefile = repo.vfs(_filename(repo), 'w', atomictemp=True)
360 cachefile = repo.vfs(filename, 'w', atomictemp=True)
360 361 except (OSError, IOError):
361 362 return
362 363
363 ui.log('tagscache', 'writing tags cache file with %d tags\n',
364 len(cachetags))
364 ui.log('tagscache', 'writing .hg/%s with %d tags\n',
365 filename, len(cachetags))
365 366
366 367 if valid[2]:
367 368 cachefile.write('%d %s %s\n' % (valid[0], hex(valid[1]), hex(valid[2])))
@@ -123,7 +123,7 b' extension and python hooks - use the eol'
123 123 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
124 124 $ hg blackbox -l 5
125 125 1970/01/01 00:00:00 bob> update
126 1970/01/01 00:00:00 bob> writing tags cache file with 0 tags
126 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 0 tags
127 127 1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
128 128 1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob)
129 129 1970/01/01 00:00:00 bob> update exited 0 after * seconds (glob)
@@ -311,12 +311,12 b' qpop'
311 311 qpush with dump of tag cache
312 312 Dump the tag cache to ensure that it has exactly one head after qpush.
313 313
314 $ rm -f .hg/cache/tags-visible
314 $ rm -f .hg/cache/tags2-visible
315 315 $ hg tags > /dev/null
316 316
317 .hg/cache/tags-visible (pre qpush):
317 .hg/cache/tags2-visible (pre qpush):
318 318
319 $ cat .hg/cache/tags-visible
319 $ cat .hg/cache/tags2-visible
320 320 1 [\da-f]{40} (re)
321 321 $ hg qpush
322 322 applying test.patch
@@ -325,9 +325,9 b' Dump the tag cache to ensure that it has'
325 325 2: draft
326 326 $ hg tags > /dev/null
327 327
328 .hg/cache/tags-visible (post qpush):
328 .hg/cache/tags2-visible (post qpush):
329 329
330 $ cat .hg/cache/tags-visible
330 $ cat .hg/cache/tags2-visible
331 331 2 [\da-f]{40} (re)
332 332 $ checkundo qpush
333 333 $ cd ..
@@ -70,7 +70,7 b' Hiding a non-tip changeset should change'
70 70 $ hg blackbox -l 4
71 71 1970/01/01 00:00:00 bob> tags
72 72 1970/01/01 00:00:00 bob> 2/2 cache hits/lookups in * seconds (glob)
73 1970/01/01 00:00:00 bob> writing tags cache file with 2 tags
73 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 2 tags
74 74 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
75 75
76 76 Hiding another changeset should cause the filtered hash to change
@@ -89,7 +89,7 b' Hiding another changeset should cause th'
89 89 $ hg blackbox -l 4
90 90 1970/01/01 00:00:00 bob> tags
91 91 1970/01/01 00:00:00 bob> 1/1 cache hits/lookups in * seconds (glob)
92 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
92 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
93 93 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
94 94
95 95 Resolving tags on an unfiltered repo writes a separate tags cache
@@ -109,5 +109,5 b' Resolving tags on an unfiltered repo wri'
109 109 $ hg blackbox -l 4
110 110 1970/01/01 00:00:00 bob> --hidden tags
111 111 1970/01/01 00:00:00 bob> 2/2 cache hits/lookups in * seconds (glob)
112 1970/01/01 00:00:00 bob> writing tags cache file with 3 tags
112 1970/01/01 00:00:00 bob> writing .hg/cache/tags2 with 3 tags
113 113 1970/01/01 00:00:00 bob> --hidden tags exited 0 after * seconds (glob)
@@ -133,7 +133,7 b' Tag cache debug info written to blackbox'
133 133 1970/01/01 00:00:00 bob> identify
134 134 1970/01/01 00:00:00 bob> writing 48 bytes to cache/hgtagsfnodes1
135 135 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob)
136 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
136 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
137 137 1970/01/01 00:00:00 bob> identify exited 0 after ?.?? seconds (glob)
138 138
139 139 Failure to acquire lock results in no write
@@ -146,7 +146,7 b' Failure to acquire lock results in no wr'
146 146 1970/01/01 00:00:00 bob> identify
147 147 1970/01/01 00:00:00 bob> not writing .hg/cache/hgtagsfnodes1 because lock held
148 148 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob)
149 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
149 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
150 150 1970/01/01 00:00:00 bob> identify exited 0 after * seconds (glob)
151 151
152 152 $ fnodescacheexists
@@ -343,7 +343,7 b' Extra junk data at the end should get ov'
343 343 1970/01/01 00:00:00 bob> tags
344 344 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
345 345 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
346 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
346 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
347 347 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
348 348
349 349 #if unix-permissions no-root
@@ -363,7 +363,7 b' Errors writing to .hgtags fnodes cache a'
363 363 1970/01/01 00:00:00 bob> tags
364 364 1970/01/01 00:00:00 bob> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1'
365 365 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
366 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
366 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
367 367 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
368 368
369 369 $ chmod a+w .hg/cache/hgtagsfnodes1
@@ -378,7 +378,7 b' Errors writing to .hgtags fnodes cache a'
378 378 1970/01/01 00:00:00 bob> tags
379 379 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
380 380 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
381 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
381 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
382 382 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
383 383
384 384 $ f --size .hg/cache/hgtagsfnodes1
@@ -394,7 +394,7 b" Stripping doesn't truncate the tags cach"
394 394 $ hg blackbox -l 4
395 395 1970/01/01 00:00:00 bob> tags
396 396 1970/01/01 00:00:00 bob> 3/3 cache hits/lookups in * seconds (glob)
397 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
397 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
398 398 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
399 399
400 400 $ f --size .hg/cache/hgtagsfnodes1
@@ -411,7 +411,7 b" Stripping doesn't truncate the tags cach"
411 411 1970/01/01 00:00:00 bob> tags
412 412 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
413 413 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
414 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags
414 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
415 415 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
416 416 $ f --size .hg/cache/hgtagsfnodes1
417 417 .hg/cache/hgtagsfnodes1: size=144
General Comments 0
You need to be logged in to leave comments. Login now