BZR update (filename) accidentally destroyed my project

Colin D Bennett colin at gibibit.com
Fri Apr 23 00:44:16 BST 2010


On Thu, 08 Apr 2010 09:31:08 -0500
John Arbash Meinel <john at arbash-meinel.com> wrote:

> Parth Malwankar wrote:
> > On Thu, Apr 8, 2010 at 1:00 PM, Andrew Bennetts
> > <andrew.bennetts at canonical.com> wrote:
> >> Harry Flink wrote:
> >> [...]
> >>> Yesterday during compile testing the changed
> >>> parts I wanted to revert one file in some
> >>> library and ran command:
> >>>   bzr update -r1234 myfilename.c
> >>>
> >>> Well this was a big mistake by my side
> >>> because what I meant to do was:
> >>>   bzr revert -r1234 myfilename.c
>...
> My guess is that 'update FOO' was not really designed properly. I
> don't think update respects a filename, only a path to a working
> tree. But I could be wrong.

Definitely ‘bzr update PATH’ should fail if PATH does not refer to a
working tree root.

Regards,
Colin



More information about the bazaar mailing list