Show More
@@ -52,6 +52,7 b' class bmstore(dict):' | |||||
52 | self._repo = repo |
|
52 | self._repo = repo | |
53 | nm = repo.changelog.nodemap |
|
53 | nm = repo.changelog.nodemap | |
54 | tonode = bin # force local lookup |
|
54 | tonode = bin # force local lookup | |
|
55 | setitem = dict.__setitem__ | |||
55 | try: |
|
56 | try: | |
56 | bkfile = _getbkfile(repo) |
|
57 | bkfile = _getbkfile(repo) | |
57 | for line in bkfile: |
|
58 | for line in bkfile: | |
@@ -63,7 +64,7 b' class bmstore(dict):' | |||||
63 | node = tonode(sha) |
|
64 | node = tonode(sha) | |
64 | if node in nm: |
|
65 | if node in nm: | |
65 | refspec = encoding.tolocal(refspec) |
|
66 | refspec = encoding.tolocal(refspec) | |
66 |
self |
|
67 | setitem(self, refspec, node) | |
67 | except (TypeError, ValueError): |
|
68 | except (TypeError, ValueError): | |
68 | # - bin(...) can raise TypeError |
|
69 | # - bin(...) can raise TypeError | |
69 | # - node in nm can raise ValueError for non-20-bytes entry |
|
70 | # - node in nm can raise ValueError for non-20-bytes entry |
General Comments 0
You need to be logged in to leave comments.
Login now