Ulf Zibis | 25 Mar 2009 22:33
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Hi Kelly,

thanks for your answer.

-- Thanks to Alan, finding somebody for answer.

Look my working set in the attachment, downloaded from http://download.java.net/openjdk/jdk7/ (build b51).
- .hgtags contains entries up to jdk7-b50
I additionally have downloaded tip.tar.bz2 from http://hg.openjdk.java.net/jdk7/tl/jdk/
- .hgtags additionally contains entry for jdk7-b51
So, what should I do next?

Should I create local repository ".hg", and commit my working set to it, maybe first deleting corba etc. folders?
... or should I better extract my working set from tip.tar.bz2

On http://openjdk.java.net/guide/repositories.html#installConfig I read, I should install the Forest Extension.

On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I read:
    Download site: public development repository. (There's a newer version that should work against post-1.0 releases.)
I've downloaded the "newer version", which simply contains hgforest-crew-872a57531db6.out. What should I do with that, so I have "installed" it?
See my Mercurial install dir in attachment. (TortoiseHG is said to contain command line Mercurial 1.2.1)

On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix for Mercurial 1.2, but I don't know if it's included in "newer version".

Thanks in advance for additional help.

-Ulf



Am 25.03.2009 19:16, Kelly O'Hair schrieb:

If you are going to use Mercurial I would highly advise reading the
Mercurial Book at http://hgbook.red-bean.com/hgbook.html
at least the first few chapters. It's nothing like SVN.

OpenJDK is a forest of repositories. A small top repository
and up to 6 sub repositories.
You can work with a partial forest, e.g. the top repository
and just one of the sub repositories, like 'jdk' or 'langtools'.
It depends on what you are trying to do.

But there is no concept of a partial repository or being able to
just work with and commit to a subset of the larger jdk repository,
Mercurial just doesn't have that feature and most people have learned
to live without it, with little pain. I myself prefer that Mercurial
NOT have this ability, it creates too many variations and risks.

If you haven't got enough room for a jdk repository (0.5Gb?), you probably
shouldn't be working on it with that machine.

The forest extension (fclone) is talked about here:
   http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension

Also see:
   http://openjdk.java.net/guide/repositories.html#installConfig

NetBeans may not work horribly well with a forest (or a nested
repository situation), but my NetBeans experience is just on one
repository at a time.

-kto

Ulf Zibis wrote:
Hi All,

I've downloaded the b51 snapshot sources. I see some .hg* files, but can't get connected to the OpenJDK repository

How to make this a working Mercurial Working Copy?

Please see my problem in the attachment.

I thought, the hg support from NetBeans didn't work, because the local .hg repository wasn't existent, so I created it by "Create Repository". After this, I think, I should commit the WC files into it, but I hesitate, because I don't want to have an additional 250 MB copy of the whole jdk on my harddisk. I have to be economic with diskspace (60 GB). I would be happy, if there would be a way, only to push the parts in the repository which I'm working on (sun.nio.cs). Do you have some hint, how to solve this problem? Does it work, if I only commit the folder, which I'm working on?
I also did a clone of http://hg.openjdk.java.net/jdk7/jdk7 which created folder "jdk". This clone only contained some few make files, so I don't know what to do with it.

Alan said, I should use fclone. I don't see how to invoke fclone from NetBeans. Also I don't find any information about fclone on http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial.

Additionally I've installed TortoiseHG.


Thanks in advance,

Ulf



------------------------------------------------------------------------



Ulf Zibis | 26 Mar 2009 10:42
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Correction ...

Am 25.03.2009 22:33, Ulf Zibis schrieb:
> Look my working set in the attachment, downloaded from 
> http://download.java.net/openjdk/jdk7/ (build b51).
> - .hgtags contains entries up to jdk7-b50
> I additionally have downloaded tip.tar.bz2 from 
> http://hg.openjdk.java.net/jdk7/tl/jdk/
> - .hgtags additionally contains entry for jdk7-b51

Becoming more familiar, I see that I've been under the misapprehension, 
that I could just unpack the downloaded archive from 
http://hg.openjdk.java.net/jdk7/tl/jdk/ to have a local clone of that 
repository. I was in hope to save network traffic with a highly 
compressed archive in contrast to get the clone "file by file".

But my questions about the Forest Extension remain:

>
> On http://openjdk.java.net/guide/repositories.html#installConfig I 
> read, I should install the Forest Extension.
>
> On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I read:
>     Download site: public development repository 
> <http://hg.akoha.org/hgforest/>. (There's a newer version 
> <http://www.bitbucket.org/pmezard/hgforest-crew/overview/> that should 
> work against post-1.0 releases.)
> I've downloaded the "newer version", which simply contains 
> hgforest-crew-872a57531db6.out. What should I do with that, so I have 
> "installed" it?
> See my Mercurial install dir in attachment. (TortoiseHG is said to 
> contain command line Mercurial 1.2.1)
>
> On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix 
> for Mercurial 1.2, but I don't know if it's included in "newer version".
>
> Thanks in advance for additional help.
>
> -Ulf
>
>
Kelly O'Hair | 26 Mar 2009 22:16
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!


I use the newer (bitbucket) forest.py with Mercurial 1.2 on my Mac and it
seems to work fine.

I do this:
    mkdir ${HOME}/hgws
    cd ${HOME}/hgws
    hg clone http://bitbucket.org/pmezard/hgforest-crew hgforest

Then add these lines to your ~/.hgrc file:
    [extensions]
    forest = ${HOME}/hgws/hgforest/forest.py

You may need to expand the ${HOME} to the real location in the ~/.hgrc file.

-kto

Ulf Zibis wrote:
> Correction ...
> 
> Am 25.03.2009 22:33, Ulf Zibis schrieb:
>> Look my working set in the attachment, downloaded from 
>> http://download.java.net/openjdk/jdk7/ (build b51).
>> - .hgtags contains entries up to jdk7-b50
>> I additionally have downloaded tip.tar.bz2 from 
>> http://hg.openjdk.java.net/jdk7/tl/jdk/
>> - .hgtags additionally contains entry for jdk7-b51
> 
> Becoming more familiar, I see that I've been under the misapprehension, 
> that I could just unpack the downloaded archive from 
> http://hg.openjdk.java.net/jdk7/tl/jdk/ to have a local clone of that 
> repository. I was in hope to save network traffic with a highly 
> compressed archive in contrast to get the clone "file by file".
> 
> 
> But my questions about the Forest Extension remain:
> 
>>
>> On http://openjdk.java.net/guide/repositories.html#installConfig I 
>> read, I should install the Forest Extension.
>>
>> On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I read:
>>     Download site: public development repository 
>> <http://hg.akoha.org/hgforest/>. (There's a newer version 
>> <http://www.bitbucket.org/pmezard/hgforest-crew/overview/> that should 
>> work against post-1.0 releases.)
>> I've downloaded the "newer version", which simply contains 
>> hgforest-crew-872a57531db6.out. What should I do with that, so I have 
>> "installed" it?
>> See my Mercurial install dir in attachment. (TortoiseHG is said to 
>> contain command line Mercurial 1.2.1)
>>
>> On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix 
>> for Mercurial 1.2, but I don't know if it's included in "newer version".
>>
>> Thanks in advance for additional help.
>>
>> -Ulf
>>
>>

Ulf Zibis | 26 Mar 2009 22:32
Picon
Picon

Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

Hi Kelly,

thanks for the link.

I guess, you mean C:\Programme\TortoiseHg\hgforest\forest.py in my 
Windows case. Am I right ?
Or do you mean C:\Programme\TortoiseHg\hgws\hgforest\forest.py in my case ?
Maybe C:\Programme\TortoiseHg\extentions\forest.py would be also good 
idea, to be open for other extensions, and to avoid overwhelming the hg 
installdir. What do you think?

-Ulf

Am 26.03.2009 22:16, Kelly O'Hair schrieb:
>
> I use the newer (bitbucket) forest.py with Mercurial 1.2 on my Mac and it
> seems to work fine.
>
> I do this:
>    mkdir ${HOME}/hgws
>    cd ${HOME}/hgws
>    hg clone http://bitbucket.org/pmezard/hgforest-crew hgforest
>
> Then add these lines to your ~/.hgrc file:
>    [extensions]
>    forest = ${HOME}/hgws/hgforest/forest.py
>
> You may need to expand the ${HOME} to the real location in the ~/.hgrc 
> file.
>
> -kto
>
>
> Ulf Zibis wrote:
>> Correction ...
>>
>> Am 25.03.2009 22:33, Ulf Zibis schrieb:
>>> Look my working set in the attachment, downloaded from 
>>> http://download.java.net/openjdk/jdk7/ (build b51).
>>> - .hgtags contains entries up to jdk7-b50
>>> I additionally have downloaded tip.tar.bz2 from 
>>> http://hg.openjdk.java.net/jdk7/tl/jdk/
>>> - .hgtags additionally contains entry for jdk7-b51
>>
>> Becoming more familiar, I see that I've been under the 
>> misapprehension, that I could just unpack the downloaded archive from 
>> http://hg.openjdk.java.net/jdk7/tl/jdk/ to have a local clone of that 
>> repository. I was in hope to save network traffic with a highly 
>> compressed archive in contrast to get the clone "file by file".
>>
>>
>> But my questions about the Forest Extension remain:
>>
>>>
>>> On http://openjdk.java.net/guide/repositories.html#installConfig I 
>>> read, I should install the Forest Extension.
>>>
>>> On http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension I 
>>> read:
>>>     Download site: public development repository 
>>> <http://hg.akoha.org/hgforest/>. (There's a newer version 
>>> <http://www.bitbucket.org/pmezard/hgforest-crew/overview/> that 
>>> should work against post-1.0 releases.)
>>> I've downloaded the "newer version", which simply contains 
>>> hgforest-crew-872a57531db6.out. What should I do with that, so I 
>>> have "installed" it?
>>> See my Mercurial install dir in attachment. (TortoiseHG is said to 
>>> contain command line Mercurial 1.2.1)
>>>
>>> On http://hg.akoha.org/hgforest/ I see, that there is a fix for Fix 
>>> for Mercurial 1.2, but I don't know if it's included in "newer 
>>> version".
>>>
>>> Thanks in advance for additional help.
>>>
>>> -Ulf
>>>
>>>
>
>


Gmane