Ask a question about svn (after svn is submitted, the server-side checkout file is sent to the production environment)

Source: Internet
Author: User
Tags svn update
Ask a svn question (after svn is submitted, the server-side checkout file is sent to the production environment). after svn is submitted, the server-side checkout file is sent to the production environment, how can I only checkout the modified files instead of checkout the entire directory ?, I don't understand. in the same question, svnexport & lt; revisionnumber & gt; has a question about svn (after svn is submitted, the server returns the checkout file to the production environment)
After svn is submitted, how can I only checkout the modified files on the server end to the production environment, instead of checkout the entire directory?

------ Solution --------------------
Don't understand.
------ Solution --------------------
Svn export
------ Solution --------------------
Discussion

Reference:

Svn export

Well, how can I export only the modified files? for example, if I only modified two files, if the whole version Library is everywhere, the execution takes a long time.

------ Solution --------------------
Svn does not have this function. you need to write scripts or programs to obtain it.

If you use TortoiseSVN, you can operate it through the graphic interface.
1. select two versions, right-click Compare revisions
2. select all differential files, right-click export selection...
------ Solution --------------------
In incremental mode, svn update is used to update to the latest version.
If all are checked out, use svn checkout
------ Solution --------------------
Yes

Discussion

In incremental mode, svn update is used to update to the latest version.
If all are checked out, use svn checkout

------ Solution --------------------
My practice is: keep a Working Directory on the server in the production environment, update it here every time you deploy it, and then rsync it to the release Directory.


--------------------------------
Based on the plug-in extension function provided by the CSDN forum, I have made a signing tool and shared it with you. we welcome Technical Exchange :)
------ Solution --------------------
Go to the directory you want to submit.
------ Solution --------------------
Svn + rsync is a good choice for the launch process. Very simple and practical.
------ Solution --------------------
Svn update
------ Solution --------------------
Currently, we use svn + rsync and then add cron.
------ Solution --------------------
If you do not directly update the file, you can use the rsync mentioned above. only modified files are transmitted according to the file time.

Discussion

Reference:

In incremental mode, svn update is used to update to the latest version.
If all are checked out, use svn checkout

You mean to directly update to the production environment?

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.