1

3

I have the following configured in Kiln:

Project: Apps / Group: Platform / repo: Platform / subrepo: Domain

My local directory stucture is the same, with the Platform directory (with .hg, .hgsub, .hgsubstate) and a sub-directory, Domain, containing a bunch of .cs files.

I created a repository for Domain (hg init | hg add * | hg commit), then created a repo for Platform and added the subrepo config (hg init | echo Domain = Domain > .hgsub | hg add .hgsub | hg commit).

Then I pushed the Platform repo (to be sure I got the .hgsub file), but the files that were commited to Domain never appeared in Kiln.

Here is my log, with some of the output:

C:\Code\Hg\Platform>hg init Domain
C:\Code\Hg\Platform>cd Domain
C:\Code\Hg\Platform\Domain>hg add *.cs  [adds one file, User.cs]
C:\Code\Hg\Platform\Domain>hg commit -m "domain commit"

[added a default-push entry for Domain to https://willow.kilnhg.com/Repo/Apps/Platform/Domain]

C:\Code\Hg\Platform>hg init
C:\Code\Hg\Platform>echo Domain = Domain > .hgsub
C:\Code\Hg\Platform>hg add .hgsub
C:\Code\Hg\Platform>hg commit -m "commit from toplevel"

committing subrepository Domain

C:\Code\Hg\Platform>hg push https://willow.kilnhg.com/Repo/Apps/Platform/Platform
pushing to https://willow.kilnhg.com/Repo/Apps/Platform/Platform
pushing subrepo Domain
searching for changes
no changes found
searching for changes
remote: kiln: successfully pushed one changeset

Domain is still empty in Kiln (no User.cs). What did I do wrong that caused my subrepo to not be pushed correctly?

flag

2 Answers

4

I setup my .hgsub a bit differently. Something like,

Domain = https://willow.kilnhg.com/Repo/Apps/Platform/Domain

When I commit from the main repo, it automatically commits the subrepo. Pushing the main repo causes the subrepo to be pushed also.

link|flag
0

From what I understand, you need to commit from the subrepo (the lowest level subrepo where the change was made if you have more than one level of hierarchy) for this to work correctly.

link|flag
thats what I figured too, but no luck. hmm. – ericvg May 12 2010 at 21:13

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.