Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
@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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .