Actually call everything_callback as necessary, fix commit_callback

The commit_callback call was trying to pass a Reset object, which was
not defined.  Copy-n-paste-n-forget-to-replace isn't good.  Now it passes
a Commit object.
This commit is contained in:
Elijah Newren 2009-02-05 07:09:19 -07:00
parent c12055b8c9
commit b5082769ea

View File

@ -185,6 +185,8 @@ class FastExportFilter(object):
# Call any user callback to allow them to modify the blob
if self.blob_callback:
self.blob_callback(blob)
if self.everything_callback:
self.everything_callback('blob', blob)
# Now print the resulting blob to stdout
blob.dump(self.output)
@ -203,6 +205,8 @@ class FastExportFilter(object):
# Call any user callback to allow them to modify the reset
if self.reset_callback:
self.reset_callback(reset)
if self.everything_callback:
self.everything_callback('reset', reset)
# Now print the resulting reset to stdout
reset.dump(self.output)
@ -290,7 +294,9 @@ class FastExportFilter(object):
# Call any user callback to allow them to modify the commit
if self.commit_callback:
self.commit_callback(reset)
self.commit_callback(commit)
if self.everything_callback:
self.everything_callback('commit', commit)
# Now print the resulting commit to stdout
commit.dump(self.output)