What does exporting do in SVN? Are there any major differences between checking out a copy and export?
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.
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.
"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".
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'.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With