why does bazaar not add a file automatically on the first commit
John Arbash Meinel
john at arbash-meinel.com
Tue Apr 22 17:39:57 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rahul Nabar wrote:
| I find myself repeating this cycle so often that I wonder there isn't
| a combined command / option.
|
| #made a new file foo.cfg
| bzr commit ~/foo.cfg
| bzr: ERROR: Path(s) are not versioned: ~/foo.cfg
| bzr add ~/foo.cfg
| bzr commit ~/foo.cfg
|
| If a user requests a commit and the file is not being tracked why
| doesn't bazaar automatically add it rather than complain? If the user
| demanded a commit it is reasonable to assume he wants that file added?
| Perhaps with some option --force etc. Is that a feature / bug? Maybe
| there's some subtlety I am not aware of! Just curious!
|
| I must mention that I've a .bzrignore set to * since I'm using it to
| version scattered scripts and config files across my system.
|
I believe we want to add a "bzr commit -a" for "--auto" which will add files
that are unversioned, etc. It just hasn't been implemented yet. I'm not sure how
that would work with ignore *. I suppose if you still specified a filename, it
should probably dad it and commit.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgOFN0ACgkQJdeBCYSNAAPq6wCfXYiu9hZj/G72MC92MJ6brcqm
7UsAoNOz1GbJ+MQ7uIk0nOeMASaUebGK
=jlDT
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list