English 中文(简体)
setting
原标题:setting up mercurial/kiln subrepos on osx
最佳回答

Kiln do ,目前不支持使用服务器上的“URLs”这一代用品。 也就是说,你不能同时工作:

http://server/kiln/somepath/project1
http://server/kiln/somepath/project1/thirdparty

因此,你应该建立起来。 页: 1

http://server/kiln/somepath/project1
http://server/kiln/somepath/project2
http://server/kiln/somepath/thirdparty
http://server/kiln/somepath/common

这简便——只是四个正常的存放处。 然后是“项目”,创建<代码>hgsub。 档案:

thirdparty = http://server/kiln/somepath/thirdparty
common = http://server/kiln/somepath/common

当你将这一资料推回Kiln时,它将通知并显示各子库的联系。 然而,子库wont <>/strong>最终在服务器上封顶。 因此,服务器上的任何<代码>项目1/第三方。

很显然,你想要这样做。 如果你们有几个项目能够合作和使用一些共同的法典基础,那么你就希望“项目1”和“项目2”能够相互改变这一共同的法典基础。 因此,在推动和从<条码>上拉动的这两个项目中,<条码>直线背书非常有用。

In Mercurial, we normally recommend that you use paths of the form common = common in the .hgsub file. This means that the server must support nested repositories. When Kiln doesn t support nested repos, you can use full paths instead.

当你最初设立这些子库时,你会记得,你需要人工更新。 因此,与上述URLs一样,你将开办“项目1”:

$ hg clone http://server/kiln/somepath/project1
$ echo "common =     http://server/kiln/somepath/common" > .hgsub
$ echo "thirdparty = http://server/kiln/somepath/thirdparty" > .hgsub
$ hg commit -m "Created subrepos"

这造成了最初的空置储存库。 他们是空洞的,因为你 t告诉Mercurial,他们需要改变。 http://code>.hgsubstate。 页: 1

0000000000000000000000000000000000000000 common
0000000000000000000000000000000000000000 thirdparty

居民点

$ cd common
$ hg pull --update
$ cd ../thirdparty
$ hg pull --update
$ cd ..
$ hg commit -m "Updated subrepos"

该表更新了<代码>000... Line in .hgsubstate,同时更新了目前对这两个分题的提纲变更。 “项目1”的未来布局将通知<代码>hgsubstate文档,并确保更新此处提及的修订案文。

问题回答

暂无回答




相关问题
bzr init-repo and multiple projects

I m having difficulties understanding bzr init-repo. I have 3 projects that I want to have in their own isolated repository, in subversion I would use svnadmin create three times to create them. Like ...

How suitable is a DVCS for the corporate environment?

I ve been using SVN for some time now, and am pretty happy with how it works (but I can t say I m an expert, and I haven t really done much with branches and merging). However an opportunity has ...

Renaming directories with the Fossil DVCS

Is it possible to rename directories with Fossil? I ve tried the obvious command: fossil mv oldname newname Fossil then informs me that it has done something: RENAME oldname newname However, ...

Distributed source control for VisualWorks Smalltalk

One of the annoying things about Smalltalk is that it (usually) requires its own VCS, due to the way that it manages its source code. Squeak and Gemstone (at least in its GLASS version) have a DVCS ...

Can I clone part of a Mercurial repository?

Is it possible to clone part of a Mercurial repository? Let s say the repository is quite large, or contains multiple projects, or multiple branches. Can I clone only part of the repository? E.g. in ...

How does git track source code moved between files?

Apparently, when you move a function from one source code file to another, the git revision log (for the new file) can show you where that code fragment was originally coming from (see for example the ...