[BUG] Re: Adding and reverting a file deletes the file
Michael Ellerman
michael at ellerman.id.au
Fri Oct 7 01:21:35 BST 2005
On Fri, 7 Oct 2005 10:00, Aaron Bentley wrote:
> Michael Ellerman wrote:
> > On Thu, 6 Oct 2005 22:24, Mark Rosenstand wrote:
> >>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? :-)
> >
> > Do you mean adding and removing? I'm confused.
>
> err, my bad.
>
> Here are the steps:
>
> abentley at lappy:~/lose$ bzr init
> abentley at lappy:~/lose$ bzr commit -m unchanged --unchanged
> abentley at lappy:~/lose$ echo "priceless data" > text
> abentley at lappy:~/lose$ bzr add
> added text
> abentley at lappy:~/lose$ bzr revert
> abentley at lappy:~/lose$ cat text
> cat: text: No such file or directory
> abentley at lappy:~/lose$
A little more clearly:
concordia ~/test$ bzr init
concordia ~/test$ echo "priceless data" > text
concordia ~/test$ bzr commit -m unchanged --unchanged
concordia ~/test$ bzr add text
added text
concordia ~/test$ bzr revert
concordia ~/test$ cat text
cat: text: No such file or directory
concordia ~/test$
That's a bug. At the time of the commit, "text" is unknown, so revert should
restore it to that state - not delete it.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051007/ce213643/attachment.pgp
More information about the bazaar
mailing list