mercurialbitbucketmercurial-subrepos

Using subrepositories with bitbucket


I have encountered this error when trying to push a subrepository to bitbucket:

D:\Work\agile.crm.framework>hg push
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7
c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cace
rts config setting)
http authorization required
realm: Bitbucket.org HTTP
user: the_drow
password:
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7
c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cace
rts config setting)
pushing to https://the_drow@bitbucket.org/the_drow/agile.crm.framework
pushing subrepo Logging to https://the_drow@bitbucket.org/the_drow/agile.crm.fra
mework/Logging
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7
c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cace
rts config setting)
abort: HTTP Error 404: NOT FOUND

I have encountered this link that describes how to solve the problem but I don't understand what to do.
Should I place my Logging subrepository in D:\Work\?
What exactly should I do with the mercurial subpaths? Will this enable me to clone locally?

EDIT: As requested, here are the contents of my .hgsub file

Logging = Logging

Solution

  • As noted in the link that you posted, "You have to make the subrepositories as siblings of the main repository."

    So on BitBucket, you need the following structure:

    https://bitbucket.org/the_drow/agile.crm.framework
    https://bitbucket.org/the_drow/Logging
    

    Then your .hgsub inside agile.crm.framework needs to contain the following:

    Logging = ../Logging