/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to shamap.py

  • Committer: Jelmer Vernooij
  • Date: 2009-03-28 22:27:07 UTC
  • mto: (0.200.305 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090328222707-n0y980ntev40xqd2
Fix blob lookup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        return row[0]
157
157
 
158
158
    def lookup_blob(self, fileid, revid):
159
 
        row = self.db.execute("select sha1 from trees where fileid = ? and revid = ?", (fileid, revid)).fetchone()
 
159
        row = self.db.execute("select sha1 from blobs where fileid = ? and revid = ?", (fileid, revid)).fetchone()
160
160
        if row is None:
161
161
            raise KeyError((fileid, revid))
162
162
        return row[0]