Chris
Chris

Reputation: 3698

Subversion, download specific folder from repo

I was trying to merge a branch into trunk but wasn't successful maybe due to not having updated the trunk into branch before the merge.

So, now I want to restart the whole process. I've checked out a copy of the branchX but some files in a folder haven't changed after the checkout - they are the old files of the trunk. There were some tree conflicts after the checkout so I've resolved them with svn resolve --accept working files or directories.

The problem is that some files haven't been downloaded. So I want to download the whole branch again as it is at the repo ignoring local structure.

How can I do that?

Upvotes: 0

Views: 1050

Answers (2)

Andreas P.
Andreas P.

Reputation: 118

Are you using google code? I have faced such problems many times.

I think the better way to do this is to make a checkout in a new local folder. This way you will have everything correct from your repo. Then go to your older local folder and take any files that is not included in your new folder or change any files that are different. Then do a commit. This way you will avoid future problems again. Do not copy from the new directory to the old instead do the opposite (from the old to the new whatever is missing) and when everything is fine the go and delete the old folder.

Upvotes: 0

Juliano
Juliano

Reputation: 811

You can checkout the branch to a different local directory. This local directory can be empty, so after the checkout there will be locally only the files downloaded from the repository.

Upvotes: 1

Related Questions