mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 05:35:58 +00:00
repository: store_list: add deleted param
This commit is contained in:
parent
c8bce0329d
commit
088d59d814
2 changed files with 6 additions and 4 deletions
|
@ -1078,8 +1078,10 @@ def get_manifest(self):
|
||||||
def put_manifest(self, data):
|
def put_manifest(self, data):
|
||||||
"""actual remoting is done via self.call in the @api decorator"""
|
"""actual remoting is done via self.call in the @api decorator"""
|
||||||
|
|
||||||
@api(since=parse_version("2.0.0b8"))
|
@api(
|
||||||
def store_list(self, name):
|
since=parse_version("2.0.0b8"), deleted={"since": parse_version("2.0.0b13"), "previously": False} # TODO -> b14
|
||||||
|
)
|
||||||
|
def store_list(self, name, *, deleted=False):
|
||||||
"""actual remoting is done via self.call in the @api decorator"""
|
"""actual remoting is done via self.call in the @api decorator"""
|
||||||
|
|
||||||
@api(since=parse_version("2.0.0b8"))
|
@api(since=parse_version("2.0.0b8"))
|
||||||
|
|
|
@ -519,10 +519,10 @@ def put_manifest(self, data):
|
||||||
self._lock_refresh()
|
self._lock_refresh()
|
||||||
return self.store.store("config/manifest", data)
|
return self.store.store("config/manifest", data)
|
||||||
|
|
||||||
def store_list(self, name):
|
def store_list(self, name, *, deleted=False):
|
||||||
self._lock_refresh()
|
self._lock_refresh()
|
||||||
try:
|
try:
|
||||||
return list(self.store.list(name))
|
return list(self.store.list(name, deleted=deleted))
|
||||||
except StoreObjectNotFound:
|
except StoreObjectNotFound:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue