八、开发者工具和指南(二) Setting up a source enlistment

Enlisting in the Source Code Using Mercurial and TortoiseHg

Orchard项目托管在Codeplex上,能使用Mercurial客户端访问,本文介绍了如何设置你的开发环境。

如果你不是Orchard项目的开发者,你能下载源码,编译和使用它,但不能提交补丁。

当使用一个分布式式源码控制系统如Mercurial时,理解Codeplex仓库上的最后登记是很重要的,但你想下载或同步一个不同的分支不是必须的,当同步你自己的enlistment,请确保你在最新的默认分支上同步。

 

Step 1: Install TortoiseHg

 

Download and install TortoiseHg(TortoiseHg是我们使用的Mercurial客户端,但你应该能使用Mercurial客户端访问仓库。

 

Step 2: Enlist in the Source Code Using TortoiseHg

进入你想存放源码的目录,右键选择"TortoiseHG/Clone"

 

As the URL of the source, type https://hg01.codeplex.com/orchard:

Click "Clone". You will not be prompted for your CodePlex login and password until you try to commit changes.

 

Step 3: Building and Running the Orchard Source

You can build and run Orchard either from the Visual Studio 2010, or using a command-line batch file.

Using Visual Studio 2010

Open Orchard.sln,Hit F5 to build and run the application

 

Everyday TortoiseHg Use

TortoiseHg中最常用的是Repository Explorer(在目录上点击右键"Hg Workbench"),例如:要查看Codeplex上的最近的更改,仅需要点击”refresh”.repository explorer会显示所有服务器上的分支和正在进行的合并.你能检查每个更改,查看描述和变化.你也可以右键点击一个更改和更新你本地的仓库.

 

Viewing the Source Code Without Enlisting

如果你不是Orchard项目的开发者,你也能从下面地址下载源码,

http://orchard.codeplex.com/SourceControl/ListDownloadableCommits.aspx

点击你感兴趣的分支.

 

这使你能直接在网页上浏览源码.

 

Branches

  • default 最新的版本.
  • integration 最近集成的源码
  • contributions this is where contributors should be working. This branch should be in sync with the integration branch. See Contributing patches for more information on contributing patches.
  • dev 正在开发中的源码
  • 1.x working branch when we get close to a release
  • integration-mono 到Mono的兼容工作
posted @ 2012-03-25 12:00  commanderss  阅读(425)  评论(0编辑  收藏  举报