Rev 1597: Allow revprops dictionary to be empty. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk
Jelmer Vernooij
jelmer at samba.org
Fri Aug 22 15:56:31 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/trunk
------------------------------------------------------------
revno: 1597
revision-id: jelmer at samba.org-20080822145628-4dyocravk7nih4fu
parent: jelmer at samba.org-20080822142019-rdplgjkxf87tgw2e
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-08-22 16:56:28 +0200
message:
Allow revprops dictionary to be empty.
modified:
AUTHORS AUTHORS-20060508114718-4c90c0062645106d
logwalker.py logwalker.py-20060621215743-c13fhfnyzh1xzwh2-1
=== modified file 'AUTHORS'
--- a/AUTHORS 2008-08-04 17:13:51 +0000
+++ b/AUTHORS 2008-08-22 14:56:28 +0000
@@ -8,6 +8,7 @@
Erik Bågfors
Alexander Belchenko
Andrew Bennetts
+Andrew Cowie
Aaron Bentley
Max Bowser
John Carr
=== modified file 'logwalker.py'
--- a/logwalker.py 2008-08-09 12:40:09 +0000
+++ b/logwalker.py 2008-08-22 14:56:28 +0000
@@ -226,6 +226,8 @@
self.cachedb.execute("replace into revprop (rev, name, value) values (?, ?, ?)", (rev, name.decode("utf-8"), value.decode("utf-8")))
def insert_revprops(self, revision, revprops):
+ if revprops is None:
+ return
for k,v in revprops.items():
self.insert_revprop(revision, k, v)
More information about the bazaar-commits
mailing list