teamware to mercurial

Stephen Lee sphen.lee at gmail.com
Wed Dec 18 02:50:18 UTC 2013


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