Adding and reverting a file
John A Meinel
john at arbash-meinel.com
Thu Oct 6 16:12:08 BST 2005
george young wrote:
> On Thu, 6 Oct 2005 14:24:55 +0200
> Mark Rosenstand <mark at borkware.net> threw this fish to the penguins:
>
>
>>Adding and reverting a file will delete the file. I would expect the
>>file to just become unknown again. Is this a bug or a feature? :-)
>
>
> Not clear to me. On this same note, one can not remove a file
> after deleting it:
That has already been fixed in the bzr.newformat branch.
And actually you could, if you were removing another file that did
exist. So this should work:
bzr init
touch a b
bzr add a b
rm b
bzr remove a b
The issue was bzr was getting the path from the first object, and
expecting it to exist (so that it can determine what working directory
you are referencing).
The latest bzr.newformat code doesn't require it to exist, it just keeps
searching parent directories even if some paths are missing.
John
=:->
>
> btest> bzr init
> btest> touch a
> btest> bzr add a
> added a
> btest> rm a
> btest> bzr remove a
> bzr: ERROR: u'/homelocal/geoyou/btest/a' does not exist
> at /usr/local/lib/python2.4/site-packages/bzrlib/branch.py line 95, in find_branch_root()
> see ~/.bzr.log for debug information
>
> If I then create some file "a", it lets me 'bzr remove'.
> This seems like a bug to me.
>
> -- George
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051006/13017ae3/attachment.pgp
More information about the bazaar
mailing list