##// END OF EJS Templates
bookmarks: prefetch 'lookup' outside of the loop...
marmoute -
r32734:b5613bda default
parent child Browse files
Show More
@@ -50,6 +50,7 b' class bmstore(dict):'
50 50 def __init__(self, repo):
51 51 dict.__init__(self)
52 52 self._repo = repo
53 lookup = repo.changelog.lookup
53 54 try:
54 55 bkfile = _getbkfile(repo)
55 56 for line in bkfile:
@@ -63,7 +64,7 b' class bmstore(dict):'
63 64 sha, refspec = line.split(' ', 1)
64 65 refspec = encoding.tolocal(refspec)
65 66 try:
66 self[refspec] = repo.changelog.lookup(sha)
67 self[refspec] = lookup(sha)
67 68 except LookupError:
68 69 pass
69 70 except IOError as inst:
General Comments 0
You need to be logged in to leave comments. Login now