##// END OF EJS Templates
strip: do not update branchcache during strip (issue3745)...
Pierre-Yves David -
r18137:d8e7b3a1 default
parent child Browse files
Show More
@@ -2395,6 +2395,10 b' class localrepository(object):'
2395 tr.close()
2395 tr.close()
2396
2396
2397 if changesets > 0:
2397 if changesets > 0:
2398 if srctype != 'strip':
2399 # During strip, branchcache is invalid but coming call to
2400 # `destroyed` will repair it.
2401 # In other case we can safely update cache on disk.
2398 branchmap.updatecache(self)
2402 branchmap.updatecache(self)
2399 def runhooks():
2403 def runhooks():
2400 # forcefully update the on-disk branch cache
2404 # forcefully update the on-disk branch cache
@@ -507,7 +507,6 b' amend'
507 $ hg -q commit -d '14 1' -m 'prepare amend'
507 $ hg -q commit -d '14 1' -m 'prepare amend'
508
508
509 $ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords
509 $ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords
510 invalidating branch cache (tip differs)
511 overwriting a expanding keywords
510 overwriting a expanding keywords
512 $ hg -q id
511 $ hg -q id
513 67d8c481a6be
512 67d8c481a6be
General Comments 0
You need to be logged in to leave comments. Login now