[Pkg-bazaar-commits] ./bzr/unstable r57: error if --message is not given for commit

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:26:56 UTC 2009


------------------------------------------------------------
revno: 57
committer: mbp at sourcefrog.net
timestamp: Tue 2005-03-22 11:23:19 +1100
message:
  error if --message is not given for commit
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-03-22 00:18:39 +0000
+++ b/bzrlib/commands.py	2005-03-22 00:23:19 +0000
@@ -443,7 +443,9 @@
 
 
 
-def cmd_commit(message, verbose=False):
+def cmd_commit(message=None, verbose=False):
+    if not message:
+        bailout("please specify a commit message")
     Branch('.').commit(message, verbose=verbose)
 
 



More information about the Pkg-bazaar-commits mailing list