Redmine integration with mercurial

Source: Internet
Author: User
Tags mercurial redmine

Because developers cannot concentrate on developing together, but dynamic domain name stability and speed are not ideal, SVN is a tricky thing for source code management of current development projects. On infoq, we saw mercurial and tried it. It was really amazing.

Note: If you use mercurial on Windows, you may wish to download tortoisehg. It is always easier to get started with interfaces. If tortoisesvn is used, it would be very easy to use tortoisehg. tortoisehg will have the opportunity to write more information later. However, the source code management idea is not like SVN, so we have to build a server.CodeSubmit to the svn server.

Start to install redmine. Download The redmine bitnami stack, an integrated environment of Apache + MySQL + SVN + Ruby + rails + redmine. The version 0.8.1-2 may be different. This installation environment is really comfortable. I installed all the environments in one breath, saving me the trouble of having to make a configuration later. I am not careful about it. I still don't know if I can make a correct version number in a day, if the E file is not good, select Chinese for the language during the installation process. By default, the installation interface is Chinese.

After redmine is installed, log on to redmine with the first account set in the installation step, enter the management menu, open the configuration items, and ensure that the mercurial in SCM is enabled in the version library.

Create a new project, go to the configuration page of the project, find the version library in the configuration, select mercurial in SCM, and enter the repository path "D: \ mercurial_db" in root directory ". This button may be used to create a mercurial repository. Do other people think this button is used to create a mercurial repository? Whether it is a translation problem. If you try this button repeatedly, the result is to add the address of a version manager. Don't worry!

I can't wait to see how redmine shows your source code submission, branches, and tags. Click "version library. If your installation path is in the form of "D: \ Program Files \ bitnami redmine stack \" like me, congratulations, you have encountered the same problem that you need to solve as I did, in addition, you do not need to go to the Source Code . You can solve this problem easily from here. Open D: \ Program Files \ bitnami redmine stack \ apps \ redmine \ Lib \ redmine \ SCM \ adapters \ mercurial_adapter.rb. Do not open it in notepad, otherwise, you may find out what it is, and use a notepad ++ editor to open it, find "cmd =" # {hg_bin} -- debug -- encoding utf8-R # {target ('')} log-c -- style # {self. class. template_path} "". The specific code line has been messed up because it has changed the code to locate the problem. Please use the search function to find it, replace it with "cmd =" # {hg_bin} -- debug -- encoding utf8-R # {target ('')} log-c -- style \" # {self. class. template_path }\ """. Save it, restart the "redminemongrel1" and "redminemongrel2" services, and refresh the page. Is it a breeze!

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.