Cloning a repo with a subrepo through ssh
Created originally on Bitbucket by ktomi1
{{{ #!python ** Mercurial version (1.8.2). TortoiseHg version (2.0.3) ** Command: --nofork workbench ** CWD: C:_TEMP\HgSubreposTest2\main ** Extensions loaded: fixfrozenexts ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] ** Windows version: (6, 1, 7600, 2, '') ** Processor architecture: x64 ** Qt-4.7.1 PyQt-4.8.2 Traceback (most recent call last): File "tortoisehg\hgqt\workbench.pyo", line 569, in cloneRepository File "tortoisehg\hgqt\workbench.pyo", line 349, in openRepo File "tortoisehg\hgqt\workbench.pyo", line 591, in _openRepo File "tortoisehg\hgqt\thgrepo.pyo", line 51, in repository File "tortoisehg\hgqt\thgrepo.pyo", line 78, in init File "tortoisehg\hgqt\thgrepo.pyo", line 115, in recordState File "tortoisehg\hgqt\thgrepo.pyo", line 127, in _getrawparents AttributeError: 'sshrepository' object has no attribute 'opener'
}}}
What I was doing:
-
created a Main repo locally with two subrepos (Nested and Nested2) where I declared the subrepos to be residing on a server and to be pushed and pulled through ssh
-
cloned it up to to the server through ssh. first the subrepos (Nested and Nested1) , then the Main repo
-
created another repo (Main_only_with_nested) locally and cloned only one of the subrepos (Nested) back from the server into it
-
created the .hgsub file in the new Main_only_with_nested and declared the subrepo in it in the same way as in the original Main repo
-
tried to clone this new Main_only_with_nested back to the server (into a newly created empty repo) through ssh
Then I got the above error.
Hope this is some help.
Thanks.