comparison mercurial/localrepo.py @ 44105:d86dede17392

localrepo: fastpath access to "." "." is just an alias for `p1(wdir())`, let us handle it that way. Differential Revision: https://phab.mercurial-scm.org/D7494
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 17 Nov 2019 14:47:29 +0100
parents 85c4cd73996b
children bfaf4c673bec
comparison
equal deleted inserted replaced
44104:85c4cd73996b 44105:d86dede17392
1541 # skip the fast path and let higher code deal with it 1541 # skip the fast path and let higher code deal with it
1542 continue 1542 continue
1543 pair = (rev, node) 1543 pair = (rev, node)
1544 quick[rev] = pair 1544 quick[rev] = pair
1545 quick[node] = pair 1545 quick[node] = pair
1546 p1node = self.dirstate.p1()
1547 if p1node != nullid:
1548 quick[b'.'] = quick[p1node]
1546 return quick 1549 return quick
1547 1550
1548 @unfilteredmethod 1551 @unfilteredmethod
1549 def _quick_access_changeid_invalidate(self): 1552 def _quick_access_changeid_invalidate(self):
1550 if '_quick_access_changeid_wc' in vars(self): 1553 if '_quick_access_changeid_wc' in vars(self):