Esempio n. 1
0
def readvalue(repo, path, node):
    filectx = repo.filectx(path, fileid=node)
    if filectx.node() == nullid:
        repo.changelog = changelog.changelog(repo.svfs,
                                             uiconfig=repo.ui.uiconfig())
        filectx = repo.filectx(path, fileid=node)
    return lz4wrapper.lz4compresshc(createfileblob(filectx))
Esempio n. 2
0
 def __init__(self, repo):
     if repo.changelog.userust():
         # Rust changelog backend is thread-safe
         self._changelog = repo.changelog
     else:
         # Python revlog changelog is not thread-safe - `self._cache` is
         # mutably shared without protection.
         self._changelog = changelog.changelog(repo.svfs,
                                               uiconfig=repo.ui.uiconfig())
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     self._changelog = changelog.changelog(*args, **kwargs)