Show More
@@ -2395,7 +2395,11 b' class localrepository(object):' | |||||
2395 | tr.close() |
|
2395 | tr.close() | |
2396 |
|
2396 | |||
2397 | if changesets > 0: |
|
2397 | if changesets > 0: | |
2398 | branchmap.updatecache(self) |
|
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. | |||
|
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 | |
2401 | self.ui.debug("updating the branch cache\n") |
|
2405 | self.ui.debug("updating the branch cache\n") |
@@ -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