(bzrtools) make bzr clean-tree --ignored not wipe shelved patches?

Aaron Bentley aaron.bentley at utoronto.ca
Tue Mar 6 02:25:06 GMT 2007


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

Marien Zwart wrote:
> I think this directory should be treated more like the .bzr directory
> is: as an implementation detail of bzr itself that does not show up in
> the ui at all. Perhaps it would be possible to move the .shelf dir
> into the .bzr dir? Perhaps there is some other way to hide it from the
> ui (without treating it as an unimportant file at the same time)?

I would be happy with sticking it in .bzr/checkout, but as Robert
Collins pointed out in IRC, that means it won't work with other tree
formats that we support, like Subversion.  But this would be the
simplest change, and might be Good Enough.

Robert mentioned the possibility of adding a new class of "ignored"
files: "precious" files.  This is a concept which Baz and other Arch
implementations had-- unversioned files which were expensive or
impossible to re-generate, and so should not be deleted by the system.
This concept was a frequent source of confusion, so we have been leery
thus far about adding it to Bazaar.  On the other hand, adding the
concept of "precious" files might allow us to use "clean-tree --ignored"
where we currently use "clean-tree --detritus", so we might be able to
get rid of the "detritus" concept at the same time, making it more of an
even trade.

Finally, another option would be to add it as a control directory format
for BzrDir.is_control_filename.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7NEC0F+nu1YWqI0RAntWAJ0dMvPQS/M7y7dpU2hil0112+b9egCeMgk2
s/QQObjUb+2idEUQN4PHRns=
=LHTr
-----END PGP SIGNATURE-----



More information about the bazaar mailing list