@provide_action("action", "New comment")
def new_comment(self, bug_data, bug, *args, **kwargs):
+ try:
+ self.update(bug_data, bug, *args, **kwargs)
+ except cherrypy.HTTPRedirect:
+ pass
return self.comment.new_comment(bug_data, comment=None, *args,
**kwargs)
def postcommit(directory):
try:
invoke_client('merge', directory=directory)
- except CommandError:
- status = invoke_client('revert --no-backup', directory=directory)
- status = invoke_client('resolve --all', directory=directory)
- raise
+ except CommandError, e:
+ if 'No merge branch known or specified' in e.err_str:
+ pass
+ else:
+ status = invoke_client('revert', '--no-backup',
+ directory=directory)
+ status = invoke_client('resolve', '--all', directory=directory)
+ raise
if len(invoke_client('status', directory=directory)[1]) > 0:
commit(directory, 'Merge from upstream')