[bug 0.11] bzr ci -m allow no message to be specified
Matthew Hannigan
mlh at zip.com.au
Wed Nov 22 15:54:24 GMT 2006
On Wed, Nov 22, 2006 at 04:52:21PM -0500, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jari Aalto wrote:
> > Under 0.11, this is possible
> >
> > $ bzr ci -m file.txt
> > added file.txt
> > Committed revision 1.
> >
> > But this should really give error, because the message is not
> > specified. It's easy to leave out the string by accident. Please test
> > if this happens in 0.12 as well
>
> It can happen under any release. Your command there is "commit all
> files, with the message 'file.txt'", and I doubt that there's an
> automatic way to detect that this is not what you meant.
For what it's worth, svn detects this; it won't commit
(unless forced) if the message is also a file name:
$ svn commit -m blah.txt
svn: The log message is a pathname (was -F intended?);
use '--force-log' to override
Hacky but it's saved me a few times.
Matt
More information about the bazaar
mailing list