diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-23 11:43:04 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-23 11:43:04 -0400 |
commit | caf0111d9c571ac268c235880e6d18fa512e9efa (patch) | |
tree | b498654ed1dcbdbba94605292c280c883c5e9faa /libbe/bzr.py | |
parent | 678d074ba2d20c22255abdcc8c41f3c0e2ec2c2a (diff) | |
download | bugseverywhere-caf0111d9c571ac268c235880e6d18fa512e9efa.tar.gz |
libbe.rcs.RCS.commit() now actually calls .pre/postcommit().
It hadn't before, which defeats the Pu purpose of hook functions.
This hand't caused any problems though, since only libbe.bzr defined a
postcommit() and there were no precommit() definitions.
Bzr's postcommit() had been to auto-merge from the default merge
source. Yikes! Removed that ;).
Diffstat (limited to 'libbe/bzr.py')
-rw-r--r-- | libbe/bzr.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libbe/bzr.py b/libbe/bzr.py index b33292c..d7cd1e5 100644 --- a/libbe/bzr.py +++ b/libbe/bzr.py @@ -93,20 +93,6 @@ class Bzr(RCS): assert len(match.groups()) == 1 revision = match.groups()[0] return revision - def postcommit(self): - try: - self._u_invoke_client('merge') - except rcs.CommandError, e: - if ('No merge branch known or specified' in e.err_str or - 'No merge location known or specified' in e.err_str): - pass - else: - self._u_invoke_client('revert', '--no-backup', - directory=directory) - self._u_invoke_client('resolve', '--all', directory=directory) - raise - if len(self._u_invoke_client('status', directory=directory)[1]) > 0: - self.commit('Merge from upstream') rcs.make_rcs_testcase_subclasses(Bzr, sys.modules[__name__]) |