Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export vs. check out in SVN

Tags:

svn-export

svn

What does exporting do in SVN? Are there any major differences between checking out a copy and export?

like image 958
Andrei Vidaicu Avatar asked Jun 02 '11 03:06

Andrei Vidaicu


People also ask

What is checkout in svn?

svn checkout checks out (retrieves) a working copy of the repository into the specified folder. If you don't have access to the repository, and there's not already a current copy of the source in the folder, you can't possibly do a build. If there is a current copy of the source there, it should include build.

What is export in TortoiseSVN?

To export single files with TortoiseSVN, you have to use the repository browser (the section called “The Repository Browser”). Simply drag the file(s) you want to export from the repository browser to where you want them in the explorer, or use the context menu in the repository browser to export the files.

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".

How do I checkout a file in svn?

So we right-click on this folder and select 'SVN Checkout…' From here we'll specify the location of the repository that we want to check our files out from. So something like… If you've forgotten what this URL is then you can go back to the VisualSVN server app and right click to select 'Copy URL to Clipboard'.


2 Answers

Exporting strips out all the versioning information and exports a particular revision (typically the latest) to another the specified location.

Copy or Checkout have versioning information with the source code.

If you list contents of the directory after an export you will find that the .svn directories are missing.

Typically something you would do if you were release your code for public download.

like image 76
Devraj Avatar answered Sep 20 '22 04:09

Devraj


When you do an svn export, you don't create the .svn directories. This is good when you don't want those directories. For example, I have my web-page under Subversion revision control. I can do a svn export to where my webpage should reside, and I end up with just the files and not the .svn directories.

However, without the .svn directories, you don't have any versioning information. You can't update your directory. You can't commit changes you make. You can't do diffs, run blames, or do anything else that requires the versioning information stored in those .svn directories.

like image 22
David W. Avatar answered Sep 18 '22 04:09

David W.