Rev 1296: Special case revnum 0 since it is never cached. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Mon Jun 23 00:30:21 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1296
revision-id: jelmer at samba.org-20080622233020-wn5tx8kser3qv4zp
parent: jelmer at samba.org-20080622232542-uf8b4v0unb479ymv
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Mon 2008-06-23 01:30:20 +0200
message:
Special case revnum 0 since it is never cached.
modified:
logwalker.py logwalker.py-20060621215743-c13fhfnyzh1xzwh2-1
=== modified file 'logwalker.py'
--- a/logwalker.py 2008-06-22 23:25:42 +0000
+++ b/logwalker.py 2008-06-22 23:30:20 +0000
@@ -257,8 +257,13 @@
self.fetch_revisions(revnum)
- has_all_revprops = self.cachedb.execute("SELECT all_revprops FROM revinfo WHERE rev=?", (revnum,)).fetchone()[0]
- known_revprops = dict(self.cachedb.execute("select name, value from revprop where rev="+str(revnum)))
+ if revnum > 0:
+ has_all_revprops = self.cachedb.execute("SELECT all_revprops FROM revinfo WHERE rev=?", (revnum,)).fetchone()[0]
+ known_revprops = dict(self.cachedb.execute("select name, value from revprop where rev="+str(revnum)))
+ else:
+ has_all_revprops = False
+ known_revprops = {}
+
if has_all_revprops:
return known_revprops
More information about the bazaar-commits
mailing list