[rfc] couple questions about new behavior of `bzr remove dir`

Alexander Belchenko bialix at ukr.net
Tue May 1 15:51:04 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here my session log and some questions:


C:\work\Bazaar\bzrconf\bzr-config-trunk\locale>bzr st
renamed:
  locale/ru/LC_MESSAGES/bzrconf.mo => locale/ru/LC_MESSAGES/bzr-config.mo

C:\work\Bazaar\bzrconf\bzr-config-trunk\locale>bzr remove ru
bzr: ERROR: Can't remove changed or unknown files:
renamed:
  locale/ru/LC_MESSAGES/bzrconf.mo => locale/ru/LC_MESSAGES/bzr-config.mo
Use --keep to not delete them, or --force to delete them regardless.


^-- Why `remove` refuse to work on renamed entries?
    Content of file does not changed here.
    The file itself not changed and still versioned.
    So error message does not match to real situation in WT.


C:\work\Bazaar\bzrconf\bzr-config-trunk\locale>bzr remove ru --force
locale/ru is not empty directory and won't be deleted.


^-- Why `remove` don't want to delete subdirectories (even with --force)?
    There is no other unversioned or ignored files inside,
    so deleting all subdirs is pretty safe here.
    This message contrary to previous error's suggestion
    to use '--force to delete them regardless'


C:\work\Bazaar\bzrconf\bzr-config-trunk\locale>bzr st
removed:
  locale/ru/
  locale/ru/LC_MESSAGES/
  locale/ru/LC_MESSAGES/bzrconf.mo
unknown:
  locale/ru/


Is this intended behavior or simply this use case was not taking into consideration?

[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGN1PYzYr338mxwCURAva5AJ4uC9h704OvmNJofbbDjDgi6dXKAQCffkTe
KgvqEdpw6O7EmNvq5IezGZQ=
=aTv8
-----END PGP SIGNATURE-----



More information about the bazaar mailing list