Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the following directory structure:

Documents
----Incoming
----Originals
----Processed
----Working

Originally I thought I only wanted to track Working, so I made a bzr repo in there.

Now I've decided that I actually want to track the whole folder. How do I expand the repository to include the parent directory?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Create a new branch in Documents, temporarily move the Working directory somewhere else, use bzr merge-into to merge it back to Documents.

share|improve this answer
    
I take it that should read: (1) Move working somewhere else temporarily; (2) use bzr init to make a new branch in documents; (3) bzr add . and bzr commit to commit the rest of the folders into the branch; (4) then use bzr merge-into to merge working into `documents –  James Polley Jan 9 '10 at 11:14
    
Hrm. I see that merge-into is a plugin. I've never looked at the bzr plugins; now it seems as though perhaps I should. –  James Polley Jan 9 '10 at 11:17
    
sigh it turns out that this doesn't do what I need, because of other requirements I hadn't realised I had at the time - namely, I need to make a lightweight checkout of just the Documents folder. This was the best answer to the problem I thought I had though –  James Polley Jan 14 '10 at 9:38

As far as I know, you don't. You can "work around" it by moving everything in your repo to a newly-created Working directory, then add the other directories, but if that's too ugly for you then you need to create a new repo that has everything you want in it in the right place to begin with.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.