Import data to your SVN Repository

Source: Internet
Author: User
From: https://i18n-zh.googlecode.com/svn/www/svnbook-1.4/svn.tour.importing.html

There are two ways to introduce a new file to the Subversion Library:SVN ImportAndSVN add, Which will be discussed in this chapter.SVN ImportAnd will be discussed during the typical Review of subversionSVN
Add
.

SVN Import

SVN ImportIs the fastest way to import unversionized files to the version library. The intermediary directory will be created as needed.SVN ImportIf you do not need a working copy, your files will be directly submitted to the version library, which is usually used when you want to add a group of files to the Subversion library. For example:

$ svnadmin create /usr/local/svn/newrepos$ svn import mytree file:///usr/local/svn/newrepos/some/project \             -m "Initial import"Adding         mytree/foo.cAdding         mytree/bar.cAdding         mytree/subdirAdding         mytree/subdir/quux.hCommitted revision 1.

In the previous example, the directory will be copiedmytreeTo the version Librarysome/projectBelow:

$ svn list file:///usr/local/svn/newrepos/some/projectbar.cfoo.csubdir/

Note: After the import, the original directory tree andNoTo get started, you still need to runSVN checkoutExport a work copy.

Recommended version library Layout

Although the flexibility of subversion allows you to freely deploy the version library, we have a set of recommended methods to createtrunkDirectory to save the "Main Line" of development,branchesDirectory store branch copy,tagsDirectory save label copy, for example:

$ svn list file:///usr/local/svn/repos/trunk/branches/tags

You will be in Chapter 4thBranch and mergeView the details of the tag and branch. For information about setting multiple projects, you can refer to the "Project root directory" in the "version library layout" section and "plan your version library structure" section.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.