Example #1
0
 def commit_set(self, refname, treeid, localids, msg, merged_commit = None):
     # not at all the git format, unlike the trees and blobs
     lids = ycoder.encode(dict(localids))
     lb = self.blob_set(lids)
     return self.db.execute(
             'insert into Commits ' +
             '  (refname, tree_blobid, localids_blobid, ' + 
             '   msg, merged_commit) ' +
             '  values (?,?,?,?,?)',
             [refname, treeid, lb, msg, merged_commit]).lastrowid
Example #2
0
 def encode(self):
     return ycoder.encode(self.d)