How do I delete a doc directory in my sub-directory?

Asked by Joe Michalides

My branch looks like this:

trunk/doc/High Level Design/UseCases

I accidentally added a directory called 'doc' to UseCases that points back to trunk/doc/*

The command I used (I think) was:

bzr push --use-existing-dir --create-prefix UseCases

How do I remove ../UseCases/doc without affecting all of the files and directories under trunk/doc?

I want to keep UseCases and all of the files in it. I Just want to remove the directory UseCases/doc

Thanks,
Joe

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

Hi Joe,

If that was the command you ran, then I think you have another copy of the same branch under UseCases. You can confirm this by checking if there's a .bzr directory in there. I'm a bit surprised that didn't give you a warning or error.

If that's the case, and you have some files in there that you want to keep, what I suggest is:

 * move (using just 'mv' or similar) the whole directory out of the tree
 * 'bzr mkdir UseCases'
 * copy the files you want back into that new UseCases directory
 * add them
 * commit

hth

Revision history for this message
Joe Michalides (joe-michalides) said :
#2

Hi Martin. yah nothing breaks a system like an idiot. I am new to bazaar
or bizarre as I like to call it. I copied out the files I wanted,
reverted to an older version before my mistake and then deleted the
whole doc path. I am now a happy camper.
Thanks,
Joe

On Fri, 2011-08-05 at 01:35 +0000, Martin Pool wrote:
> Your question #166968 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/166968
>
> Status: Open => Answered
>
> Martin Pool proposed the following answer:
> Hi Joe,
>
> If that was the command you ran, then I think you have another copy of
> the same branch under UseCases. You can confirm this by checking if
> there's a .bzr directory in there. I'm a bit surprised that didn't give
> you a warning or error.
>
> If that's the case, and you have some files in there that you want to
> keep, what I suggest is:
>
> * move (using just 'mv' or similar) the whole directory out of the tree
> * 'bzr mkdir UseCases'
> * copy the files you want back into that new UseCases directory
> * add them
> * commit
>
> hth
>

Revision history for this message
Martin Pool (mbp) said :
#3

.

Can you help with this problem?

Provide an answer of your own, or ask Joe Michalides for more information if necessary.

To post a message you must log in.