Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to do something like svn add dir1 dir2; svn ci dir1 dir2 but have it be only 1 revision. Is there a way to do this?

P.S. Is this the correct way to add new folders (with contents) to the repository? We are restructuring the trunk, so I cleared it out and plan on putting these directories with their contents in it.

share|improve this question
add comment

1 Answer 1

You can add, delete, edit as many files as you want in a single revision. When you commit the changes a revision is made, not when you do a single action such as add or remove a folder.

Just do everything you want to do THEN commit to the SVN.

share|improve this answer
    
I don't think you understood the question. Like if I want to import this directory and that directory. Each one causes a revision. –  person Jun 19 '10 at 0:02
1  
@person - no it doesn't. Only a svn ci causes a new revision. –  richq Jun 19 '10 at 15:17
    
I agree with rq. The svn add doesn't do an implicit commit. If you do add without ci (aka commit), your directories are not added to the subversion repository. –  Doug Harris Jul 27 '10 at 15:35
add comment

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.