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

Jari Aalto jari.aalto at cante.net
Fri Mar 16 07:15:55 GMT 2007


"Martin Pool" <mbp at sourcefrog.net> writes:

> On 3/16/07, Jari Aalto <jari.aalto at cante.net> wrote:
>> 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.
>
> I think
>
>  bzr ci --auto -m 'add foo' foo
>
> should auto-add (or remove) just that single file and commit it.  If
> you make a mistake and forget the filename you can uncommit.

Whether it's implemented in 'ci' (that's actually better), that's fine.
For parallel operation, it should also be possible to write:

  bzr --auto -m "No more needed" rm foo

I hope you're considering -a for --auto as well, so that typing the commands
become a joy:

  bzr -am "message" {rm|ci} foo

Jari




More information about the bazaar mailing list