aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/rcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/rcs.py')
-rw-r--r--libbe/rcs.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/libbe/rcs.py b/libbe/rcs.py
index fdbb01a..0206bf6 100644
--- a/libbe/rcs.py
+++ b/libbe/rcs.py
@@ -408,14 +408,22 @@ class RCS(object):
temp_file = os.fdopen(descriptor, 'wb')
temp_file.write(summary)
temp_file.flush()
+ self.precommit()
revision = self._rcs_commit(filename, allow_empty=allow_empty)
temp_file.close()
+ self.postcommit()
finally:
os.remove(filename)
return revision
- def precommit(self, directory):
+ def precommit(self):
+ """
+ Executed before all attempted commits.
+ """
pass
- def postcommit(self, directory):
+ def postcommit(self):
+ """
+ Only executed after successful commits.
+ """
pass
def revision_id(self, index=None):
"""