Disable sync dbmap saves -- they remove nodes added by other tools.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-07 21:13:46 +00:00
1 parent b9e0af9b95
commit d5eb7ececf
1 file changed
+4 -4
+4 -4
View File
@@ -543,10 +543,10 @@ class DBMap(dict):
if not isinstance(node, DBMap): continue
node.saveDB(sync=sync, save=save)
# Remove db nodes not in children.
if sync:
for name in self.__db__.ls():
if name not in self:
self.__db__.delete(name)
###if sync:
### for name in self.__db__.ls():
### if name not in self:
### self.__db__.delete(name)
def importFromDB(self, obj, fields):
"""Set fields in obj from db fields.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.