[RFC] Improving bzr add: Add option --message (for auto 'ci')

Jari Aalto jari.aalto at cante.net
Thu Mar 15 21:59:13 GMT 2007

John Arbash Meinel <john at arbash-meinel.com> writes:
> Jari Aalto wrote:
>> Consider this:
>>    $ bzr add file.conf
>>    ...wait a while
>>    $ bzr ci -m "- Added configuration file" file.conf
>>    ...wait a while
>> The 'add' command could simultaneously also do the checking for
>> initial imports and the above would be 1-step process:
>>   $ bzr ci -m "- Added configuration file" file.conf
>> This would also reduce the wait time and need to type two separate
>> commands.
>> Jari
> I'm a little confused what you are trying to do with 'bzr ci' versus
> 'bzr add'. Are you saying that 'commit' could automatically add the
> file, or that 'bzr add' could commit the contents?

Imean, that when doing initial import, say on a tree with 100 files

     bzr add

Followed by

     bzr ci

That could be avoided and simplified. For tree imports, the message to all
is same, like "- Import 1.3.1 vanilla", after which you start hacking.
The presence of added --message|-m option in:

   bzr ci -m "- Added configuration file" file.conf

Would effectively do two steps simultaneously:

   bzr add
   bzr ci -m "- Added configuration file" file.conf

> Other systems have a "commit --auto", which finds unknown files and adds
> them. Which I've heard is quite nice.
> I think bzr could easily be updated to support this, and I would be
> happy to review any patches that introduce it.

I wouldn't dare to use --auto because I want usually hand pick what to add.
But the 1-step add-and-commit comes handy for all initial imports.


More information about the bazaar mailing list