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'm using subversion, how to do this:

import files under /target but excluding those under /target/download1 and /target/download2

Anyone can provide a demo?

share|improve this question
1  
Please consider revisiting some of your questions. Mark things as accepted if you have received a useful answer, or add comments or revise your questions with any additional details so we can get more of your questions resolved. –  Zoredache Jun 8 '10 at 6:41
    
Similar answer solved at stackoverflow.com: stackoverflow.com/questions/736856/… –  mkudlacek Jun 8 '10 at 6:56

1 Answer 1

Quick-and-dirty solution:

  • Move /target/download1 and /target/download2 to /tmp
  • svn import /target http:/url.to.your.repo/trunk/path
  • If necessary, move download1 and download2 back to /target

The last step is probably not necessary, since your /target directory will not be under version control afterwards, you will need to checkout to a new directory anyway, this will then have your desired structure.

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.