Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import on TortoiseSVN?

I am trying to set up TortoiseSVN. I am using the Windows version and using the context menu, you right click and it has some options.

For initially getting my files into to a repository I try to do import and it is the only thing that makes it seem like it is working, and it shows in the log.

Adding filepath

But eventually when it gets to the jQuery file that's in my directory I get an error and everything comes to a stop.

How can I get around this?

like image 315
JasonDavis Avatar asked Sep 11 '09 17:09

JasonDavis


People also ask

What is import and export in SVN?

"Import" is to bring something completely outside of version control into SVN. Once something is under SVN control, you can "commit" (new modifications), or "checkout" (stuff you've already committed). At any time, you can "export" some or all of your project into a "clean directory".

Is TortoiseSVN free for commercial use?

TortoiseSVN is an Open Source project developed under the GNU General Public License (GPL). It is free to download and free to use, either personally or commercially, on any number of PCs.


2 Answers

Export is not what you think it is. It's used to get the files that are already in the repository without the extra versioning data.

For my initial import, I usually just

  1. Create a new repository.
  2. Checkout the empty repository.
  3. Copy my files in empty, checkout directory.
  4. Commit.

I've never had an issue doing it this way.

This is essentially the same as the Import in place section of the TortoiseSVN manual. Except that I copy the files in after checkout to avoid the warning.

like image 179
Ben S Avatar answered Oct 18 '22 05:10

Ben S


The reason I don't like using import is that you don't end up with a working copy after doing the import. When I have been working on some code and decide I want to add it to a new repository, I just check out the new (empty) repository over top of my existing code. Once you have done that, you have turned your code into a working copy and you can now add and commit (or ignore) any files you want. Much simpler than import, IMO.

like image 44
D'Arcy Rittich Avatar answered Oct 18 '22 05:10

D'Arcy Rittich