From 9f4e7ca14b9f1b98266b747fc9e2bfa7ff1f827c Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Wed, 12 Apr 2006 14:25:10 +0000 Subject: [PATCH] - Allow commit without changelog git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6559 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Subversion/SubversionClient.py | 3 ++- product/ERP5Subversion/Tool/SubversionTool.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5Subversion/SubversionClient.py b/product/ERP5Subversion/SubversionClient.py index b0cb240355..bf4f877547 100644 --- a/product/ERP5Subversion/SubversionClient.py +++ b/product/ERP5Subversion/SubversionClient.py @@ -229,7 +229,7 @@ try: def checkin(self, path, log_message, recurse): self._getPreferences() try: - return self.client.checkin(path, log_message=log_message, recurse=recurse) + return self.client.checkin(path, log_message=log_message or 'none', recurse=recurse) except pysvn.ClientError, error: excep = self.getException() if excep: @@ -262,6 +262,7 @@ try: def revert(self, path): self._getPreferences() + raise str(path) return self.client.revert(path) def log(self, path): diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py index 045d8c205e..3556b62596 100644 --- a/product/ERP5Subversion/Tool/SubversionTool.py +++ b/product/ERP5Subversion/Tool/SubversionTool.py @@ -607,7 +607,7 @@ class SubversionTool(UniqueObject, Folder): return client.revert(path) security.declareProtected('Import/Export objects', 'checkin') - def checkin(self, path, log_message = 'None', recurse=True): + def checkin(self, path, log_message=None, recurse=True): """Commit local changes. """ client = self._getClient(login=self.login) -- 2.30.9