Show More
@@ -245,7 +245,10 b' def _index_repo(gitrepo, db, progress_fa' | |||||
245 | # TODO: we should figure out how to incrementally index history |
|
245 | # TODO: we should figure out how to incrementally index history | |
246 | # (preferably by detecting rewinds!) so that we don't have to do a |
|
246 | # (preferably by detecting rewinds!) so that we don't have to do a | |
247 | # full changelog walk every time a new commit is created. |
|
247 | # full changelog walk every time a new commit is created. | |
248 | cache_heads = {x[0] for x in db.execute('SELECT node FROM possible_heads')} |
|
248 | cache_heads = { | |
|
249 | pycompat.sysstr(x[0]) | |||
|
250 | for x in db.execute('SELECT node FROM possible_heads') | |||
|
251 | } | |||
249 | walker = None |
|
252 | walker = None | |
250 | cur_cache_heads = {h.hex for h in possible_heads} |
|
253 | cur_cache_heads = {h.hex for h in possible_heads} | |
251 | if cur_cache_heads == cache_heads: |
|
254 | if cur_cache_heads == cache_heads: |
General Comments 0
You need to be logged in to leave comments.
Login now