MCPcopy
hub / github.com/borgbackup/borg / _set_id

Method _set_id

src/borg/repository.py:226–231  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

224 self.store.close()
225
226 def _set_id(self, id):
227 # for testing: change the id of an existing repository
228 assert self.opened
229 assert isinstance(id, bytes) and len(id) == 32
230 self.id = id
231 self.store.store("config/id", bin_to_hex(id).encode())
232
233 def _lock_refresh(self):
234 if self.lock is not None:

Callers 1

_set_repository_idFunction · 0.80

Calls 1

bin_to_hexFunction · 0.85

Tested by

no test coverage detected