I want to get the code as it was in a specific revision of an earlier branch. My working copy is switched to another branch right now. Note I want to only do this for specific directory.
My svn version is
svn, version 1.6.17 (r1128011)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let’s say you’re in ORIGINATING_BRANCH and the version of the file you’re interested in is in TARGET_BRANCH
I’d do it like this:
If you want to commit it back into your initial branch, you’ll need to switch back:
Be careful: on the second switch you’ll need to merge both versions (the old one with your newer modifications, and the other), so you better save a backup copy of your changes before switching back.
If you want to use svn merge simply do something like: