How do I move a directory to a directory that has been deleted?
Nicholas Allen
nick.allen at onlinehome.de
Sat Aug 2 09:38:49 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I found the solution but I think Bazaar was very misleading on this.
Basically I MUST use "bzr rm" and not OS rm command to remove the
directory. What is misleading though is that bazaar shows files and
directories deleted with the OS rm command in the same way as when
deleted with Bazaar's own rm command. As a user there is no way (that I
can see) to distinguish this in the status.
It would be better if Bazaar would show files deleted with OS command as
"missing" and not "removed". Then it would have been clear that Bazaar
thinks this file has not been deleted but is missing and that's why it
is not possible to rename onto it.
It would be better too, I think, if Bazaar would not delete the file on
commit unless explicitly told to do so. So when listed as missing and
then committing the file would not be removed in the repository.
The user could quite easily specify that missing files should be removed:
bzr rm `bzr ls --missing`
Nick
Nicholas Allen wrote:
| Hi,
|
| In one commit I want to deleted a directory containing files and rename
| another directory to its name. The files in the directory should have
| the history that they had in the old name. Bazaar will not let me do
| this though. For example:
|
| cd /tmp
| /tmp> mkdir test
| /tmp> cd test
| /tmp/test> bzr init
| /tmp/test> mkdir a
| /tmp/test> mkdir b
| /tmp/test> bzr add
| added a
| added b
| /tmp/test> bzr ci -m "Added a and b"
| Committing to: /tmp/test/
| added a
| added b
| Committed revision 1.
| /tmp/test> rm -fr a
| /tmp/test> bzr mv b a
| bzr: ERROR: Could not move b => a: a is already versioned.
|
|
| Nick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIlB0Z1+i51gqqEGkRAuDrAKCbAgCy3oWlhzEUGKDFrWIMmPF9awCeLy4w
+b8zCsQUyw9kDvYySm+NTiM=
=+RWl
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list