equal
deleted
inserted
replaced
3366 |
3366 |
3367 def register_wanted_sidedata(self, category): |
3367 def register_wanted_sidedata(self, category): |
3368 self._wanted_sidedata.add(pycompat.bytestr(category)) |
3368 self._wanted_sidedata.add(pycompat.bytestr(category)) |
3369 |
3369 |
3370 def register_sidedata_computer(self, kind, category, keys, computer): |
3370 def register_sidedata_computer(self, kind, category, keys, computer): |
3371 if kind not in (b"changelog", b"manifest", b"filelog"): |
3371 if kind not in revlogconst.ALL_KINDS: |
3372 msg = _(b"unexpected revlog kind '%s'.") |
3372 msg = _(b"unexpected revlog kind %r.") |
3373 raise error.ProgrammingError(msg % kind) |
3373 raise error.ProgrammingError(msg % kind) |
3374 category = pycompat.bytestr(category) |
3374 category = pycompat.bytestr(category) |
3375 if category in self._sidedata_computers.get(kind, []): |
3375 if category in self._sidedata_computers.get(kind, []): |
3376 msg = _( |
3376 msg = _( |
3377 b"cannot register a sidedata computer twice for category '%s'." |
3377 b"cannot register a sidedata computer twice for category '%s'." |