mercurial/localrepo.py
changeset 39301 5763216ba311
parent 39298 7a9f15ed3b96
child 39312 9198e41df6ef
equal deleted inserted replaced
39300:52e6171ec822 39301:5763216ba311
  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: