git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e67b62f
)
object_store: Allow MemoryObjectStore object deletion for tests.
author
Dave Borowitz
<dborowitz@google.com>
Mon, 6 Dec 2010 16:17:28 +0000
(17:17 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Mon, 6 Dec 2010 16:17:28 +0000
(17:17 +0100)
Change-Id: I50e17d808849e7948178a84db812690d1f8f0f69
dulwich/object_store.py
patch
|
blob
|
history
diff --git
a/dulwich/object_store.py
b/dulwich/object_store.py
index 0eebe50118d3f7527665ac28db405150c1a997f5..f23778157cbcb0e6d0166642415cd956253991b1 100644
(file)
--- a/
dulwich/object_store.py
+++ b/
dulwich/object_store.py
@@
-579,6
+579,10
@@
class MemoryObjectStore(BaseObjectStore):
def __getitem__(self, name):
return self._data[name]
+ def __delitem__(self, name):
+ """Delete an object from this store, for testing only."""
+ del self._data[name]
+
def add_object(self, obj):
"""Add a single object to this object store.