Commits

François Gannaz committed 208eb10

With --no-commit, display the message to commit

Comments (0)

Files changed (1)

bugtracker/__init__.py

 	bug.save()
 	if not opts["no_commit"]:
 		bt.commit( MSG_BugAdded % (bug.buid(), bug.title()) )
+        else:
+		ui.write( MSG_BugAdded + "\n" % (bug.buid(), bug.title()) )
 	
 	
 def bug_close( ui, repo, bt, extra, opts ):	
 	bug = bt.close_bug( extra )
 	if bug is not None and not opts["no_commit"]:
 		bt.commit( MSG_BugClosed % (bug.buid(), bug.title()) )	
+        else:
+		ui.write( MSG_BugClosed + "\n" % (bug.buid(), bug.title()) )
 	
 def bug_modify( ui, repo, bt, extra, opts ):
 	"""Modify a bug"""
 	ui.status( MSG_BugUpdated % bug.buid() )
 	if not opts["no_commit"]:
 		bt.commit( commit_msg )
+        else:
+		ui.write( commit_msg )
 	
 def bug_open( ui, repo, bt, extra, opts ):
 	if not extra:
 	bug = bt.open_bug( extra )
 	if bug is not None and not opts["no_commit"]:
 		bt.commit( MSG_BugReopened % bug.buid() )
+        else:
+		ui.write( MSG_BugReopened + "\n" % bug.buid() )
 		
 def bug_show( ui, repo, bt, extra, opts ):
 	if not extra: