equal
deleted
inserted
replaced
1391 self.store.createmode, |
1391 self.store.createmode, |
1392 validator=validate, |
1392 validator=validate, |
1393 releasefn=releasefn, |
1393 releasefn=releasefn, |
1394 checkambigfiles=_cachedfiles, |
1394 checkambigfiles=_cachedfiles, |
1395 name=desc) |
1395 name=desc) |
1396 tr.changes['revs'] = pycompat.xrange(0, 0) |
1396 tr.changes['origrepolen'] = len(self) |
1397 tr.changes['obsmarkers'] = set() |
1397 tr.changes['obsmarkers'] = set() |
1398 tr.changes['phases'] = {} |
1398 tr.changes['phases'] = {} |
1399 tr.changes['bookmarks'] = {} |
1399 tr.changes['bookmarks'] = {} |
1400 |
1400 |
1401 tr.hookargs['txnid'] = txnid |
1401 tr.hookargs['txnid'] = txnid |
1609 if tr is not None and tr.hookargs.get('source') == 'strip': |
1609 if tr is not None and tr.hookargs.get('source') == 'strip': |
1610 # During strip, many caches are invalid but |
1610 # During strip, many caches are invalid but |
1611 # later call to `destroyed` will refresh them. |
1611 # later call to `destroyed` will refresh them. |
1612 return |
1612 return |
1613 |
1613 |
1614 if tr is None or tr.changes['revs']: |
1614 if tr is None or tr.changes['origrepolen'] < len(self): |
1615 # updating the unfiltered branchmap should refresh all the others, |
1615 # updating the unfiltered branchmap should refresh all the others, |
1616 self.ui.debug('updating the branch cache\n') |
1616 self.ui.debug('updating the branch cache\n') |
1617 branchmap.updatecache(self.filtered('served')) |
1617 branchmap.updatecache(self.filtered('served')) |
1618 |
1618 |
1619 if full: |
1619 if full: |