]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/git.py
Adds a date option to save, split and bup.git.PackWriter._new_commit()
[bup.git] / lib / bup / git.py
index af54a60d98c6a9340b69a58dcd502cf873bd1b97..66370cacc64d6e6a967fa8220752397175ac7e82 100644 (file)
@@ -554,12 +554,11 @@ class PackWriter:
         l.append(msg)
         return self.maybe_write('commit', '\n'.join(l))
 
-    def new_commit(self, parent, tree, msg):
+    def new_commit(self, parent, tree, date, msg):
         """Create a commit object in the pack."""
-        now = time.time()
         userline = '%s <%s@%s>' % (userfullname(), username(), hostname())
         commit = self._new_commit(tree, parent,
-                                  userline, now, userline, now,
+                                  userline, date, userline, date,
                                   msg)
         return commit