bzr ci -m "": error should be generated earlier

Bug #612512 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

C:\Temp>bzr init 1
Created a standalone tree (format: 1.9)

C:\Temp\1>bzr mkdir foo bar spam eggs meat fish cheese juice tea coffee
added foo
added bar
added spam
added eggs
added meat
added fish
added cheese
added juice
added tea
added coffee

C:\Temp\1>bzr ci -m ""
Committing to: C:/Temp/1/
added bar
added cheese
added coffee
added eggs
added fish
added foo
added juice
added meat
added spam
added tea
aborting commit write group: BzrCommandError(empty commit message specified)
bzr: ERROR: empty commit message specified

I don't think that listing files/directories intended to be committed *before* generating "ERROR: empty commit message specified" is good for users, cause it creates (wrong?) assumption that bzr do the commit.

It should be relatively easy to fix with earlier check in the command class, IMO.

Tags: easy ui

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote :

The same behavior if user supply empty file with commit message:

C:\Temp\1>bzr ci -F NUL
Committing to: C:/Temp/1/
added bar
added cheese
added coffee
added eggs
added fish
added foo
added juice
added meat
added spam
added tea
aborting commit write group: BzrCommandError(empty commit message specified)
bzr: ERROR: empty commit message specified

C:\Temp\1>touch message.txt

C:\Temp\1>bzr ci -F message.txt
Committing to: C:/Temp/1/
added bar
added cheese
added coffee
added eggs
added fish
added foo
added juice
added meat
added spam
added tea
aborting commit write group: BzrCommandError(empty commit message specified)
bzr: ERROR: empty commit message specified

tags: added: ui
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.