teamware to mercurial

Kevin I. Hodges k.i.hodges at reading.ac.uk
Wed Dec 18 10:07:19 UTC 2013


Thanks  Stephen and Dave for your suggestions. 

I believe you are right in that the teamware child is essentially a equivelant to a mercurial clone. I have converted both the parent and child to mercurial repositories and was thinking to clone the parent, then do a pull from the child and then a merge and finally a push back to the parent. However, it seems that this is not neccesary and an edit of the child .hg/hgrc file to make the link is all that is required. I will give this a try, thanks for your help.

Regards

Kevin
________________________________________
From: Stephen Lee [sphen.lee at gmail.com]
Sent: 18 December 2013 02:50
To: Dave S
Cc: Kevin I. Hodges; mercurial at selenic.com
Subject: Re: teamware to mercurial

On Wed, Dec 18, 2013 at 1:33 PM, Dave S <snidely.too at gmail.com> wrote:
> On Sun, Dec 15, 2013 at 9:29 AM, Kevin I. Hodges <k.i.hodges at reading.ac.uk>
> wrote:
>>
>> hi
>>
>>     I'm in the process of converting some old Sun Teamware workspaces, a
>> parent and child, to mercurial
>
>
> Not having used Teamware, I am going to display my ignorance, and make a
> wild guess that a child workspace corresponds to a Mercurial subrepository.
> And there are plenty of people here who can advise you on those, which
> involves turning on an extension.  There is also a separate concept of a
> guest repository, which uses a third-party extension.
>

>From my very quick googling the parent-child relationship looks more
like a clone relationship in Mercurial.

>> . I can do the conversion on parent and child including maintaining
>> histories using sccs2cvs, cvs2svn and 'hg convert' but what I'm not sure
>> about is how to make the link between the converted parent and child in
>> mercurial. Can I simply reparent the child using 'hg reparent' or do I need
>> to do a merge?  And finally to update the parent with the new files in the
>> child a 'hg push'?
>

To link the child to its parent, edit the ".hg/hgrc" file in the child
and add an entry to the paths section.
[paths]
parent = /path/to/parent

Then you can do "hg push parent" to send changesets from the child
into the parent.
I suggest you read the Mercurial book, especially chapter 3 which has
information about this: http://hgbook.red-bean.com/read/

Steve



More information about the Mercurial mailing list