Mercurial > hg
comparison hgext/remotefilelog/contentstore.py @ 43117:8ff1ecfadcd1
cleanup: join string literals that are already on one line
Thanks to Kyle for noticing this and for providing the regular
expression to run on the codebase.
This patch has been reviewed by the test suite and they approved of
it.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D7028
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 08 Oct 2019 15:06:18 -0700 |
parents | c59eb1560c44 |
children | 9f70512ae2cf |
comparison
equal
deleted
inserted
replaced
43116:defabf63e969 | 43117:8ff1ecfadcd1 |
---|---|
135 | 135 |
136 raise KeyError((name, hex(node))) | 136 raise KeyError((name, hex(node))) |
137 | 137 |
138 def add(self, name, node, data): | 138 def add(self, name, node, data): |
139 raise RuntimeError( | 139 raise RuntimeError( |
140 b"cannot add content only to remotefilelog " b"contentstore" | 140 b"cannot add content only to remotefilelog contentstore" |
141 ) | 141 ) |
142 | 142 |
143 def getmissing(self, keys): | 143 def getmissing(self, keys): |
144 missing = keys | 144 missing = keys |
145 for store in self.stores: | 145 for store in self.stores: |
207 self._updatemetacache(node, size, flags) | 207 self._updatemetacache(node, size, flags) |
208 return self._threaddata.metacache[1] | 208 return self._threaddata.metacache[1] |
209 | 209 |
210 def add(self, name, node, data): | 210 def add(self, name, node, data): |
211 raise RuntimeError( | 211 raise RuntimeError( |
212 b"cannot add content only to remotefilelog " b"contentstore" | 212 b"cannot add content only to remotefilelog contentstore" |
213 ) | 213 ) |
214 | 214 |
215 def _sanitizemetacache(self): | 215 def _sanitizemetacache(self): |
216 metacache = getattr(self._threaddata, 'metacache', None) | 216 metacache = getattr(self._threaddata, 'metacache', None) |
217 if metacache is None: | 217 if metacache is None: |