Automatically sync to the Web root after SVN commits

Source: Internet
Author: User
Tags svn update

In the hooks directory under the storage directory of the SVN project repository, create a new Post-commit.bat file:


@echo OffSET repos=%1set rev=%2set dir=%repos%/hooksset path=%path%; SET working=e:/www/directory to synchronize SVN update%working%--username user name--password password



Note: The above method must add the bin in the SVN server installation directory to the path (environment variable [path use '; ') Separate]). SVN installs through Setup, and the bin directory is added to the path path by default, and must be manually incremented if installed through a compressed package.


To find out if this script is an error, you can enter it on the cmd command line: D:/svn/hooks/post-commit.bat for testing. The following message appears to indicate that the script executed successfully:

C:\Documents and Settings\administrator>d:/svn/hooks/post-commit.bat
Upgrading ' E:\WWW\APP:
Version 216.

Automatically sync to the Web root after SVN commits

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.