Setup OpenJDK Netbeans project - Mercurial - Please help!

View: New views
10 Messages — Rating Filter:   Alert me  

Parent Message unknown Setup OpenJDK Netbeans project - Mercurial - Please help!

by Ulf Zibis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




OpenJDK - Mercurial Clone error.jpg (92K) Download Attachment

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

by Kelly O'Hair :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
>
>
>
> ------------------------------------------------------------------------
>

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

by Ulf Zibis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



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






OpenJDK - work set.jpg (17K) Download Attachment
OpenJDK - Mercurial Install dir.jpg (21K) Download Attachment

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

by Ulf Zibis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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. (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




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

by Kelly O'Hair :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
>>
>>

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

by Ulf Zibis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>>>
>>>
>
>


Parent Message unknown Re: Setup OpenJDK Netbeans project - Mercurial - Please help!

by Ulf Zibis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I've problems to find location of/for ~/.hgrc file. I don't find it
anywhere.

What you mean by ${HOME} on (german) Windows?
- installdir: C:\Programme\TortoiseHg\
- user settings: C:\Dokumente und
Einstellungen\user\Anwendungsdaten\TortoiseHg\

hg showconfig results:

C:\Dokumente und Einstellungen\user\Anwendungsdaten\TortoiseHg>hg showconfig
extdiff.cmd.vdiff=C:\\Programme\\TortoiseHg\\kdiff3
extensions.extdiff=
merge-tools.beyondcompare3.args=$local $other $base $output /ro
/lefttitle=local
 /centerfile=base /righttitle=other /automerge /reviewconflicts /solo
merge-tools.beyondcompare3.gui=True
merge-tools.beyondcompare3.priority=-2
merge-tools.beyondcompare3.regkey=Software\\Scooter Software\\Beyond
Compare 3
merge-tools.beyondcompare3.regname=ExePath
merge-tools.diffmerge.args=--nosplash --merge --title1=base
--title2=local --tit
le3=other $base $local $other
merge-tools.diffmerge.checkchanged=True
merge-tools.diffmerge.gui=True
merge-tools.diffmerge.priority=-7
merge-tools.kdiff3.args=-L1 base --L2 local --L3 other $base $local
$other -o $o
utput
merge-tools.kdiff3.fixeol=True
merge-tools.kdiff3.gui=True
merge-tools.kdiff3.priority=-1
merge-tools.kdiff3.regappend=\\kdiff3.exe
merge-tools.kdiff3.regkey=Software\\KDiff3
merge-tools.p4merge.args=$base $local $other $output
merge-tools.p4merge.gui=True
merge-tools.p4merge.priority=-8
merge-tools.p4merge.regappend=\\p4merge.exe
merge-tools.p4merge.regkey=Software\\Perforce\\Environment
merge-tools.p4merge.regname=P4INSTROOT
merge-tools.tortoisemerge.args=/base:$output /mine:$local /theirs:$other
/merged
:$output
merge-tools.tortoisemerge.gui=True
merge-tools.tortoisemerge.priority=-9
merge-tools.tortoisemerge.regkey=Software\\TortoiseSVN
merge-tools.winmergeu.args=/e /ub /dl other /dr local $other $local $output
merge-tools.winmergeu.fixeol=True
merge-tools.winmergeu.gui=True
merge-tools.winmergeu.priority=-10
merge-tools.winmergeu.regkey=Software\\Thingamahoochie\\WinMerge\\
merge-tools.winmergeu.regname=Executable
ui.editor=notepad
ui.ssh="C:\\Programme\\TortoiseHg\\TortoisePlink.exe" -ssh -2
ui.username=UlfZibis

Please give me some more hints.

-Ulf


Am 26.03.2009 23:34, Kelly O'Hair schrieb:

>
> I have no idea about TortoiseHg. I get the forest.py extension
> directly from bitbucket.org so I know I have the latest one.
> What gets shipped in TortoiseHg should work but I have no idea
> what version it is.
> The forest.py is just a text file, you can diff the one you have
> with the bitbucket.org one to see if it differs at all.
>
> Watch out for TortoiseHg, it seems to enable many more hg extensions
> than most people need by default. It should work fine, but I don't
> like having lots of hg extensions I don't need enabled.
>
> Run 'hg showconfig' to see what extensions you have enabled.
>
> -kto
>
> Ulf Zibis wrote:
>> 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
>>>
>>>
>


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

by Kelly O'Hair :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm not a TortoiseHg user and don't do much direct development on Windows.

I think on Windows the equivalent to ~/.hgrc is Mercurial.ini.

You need to do some reading on Mercurial, TortoiseHg, etc., try:
    http://www.selenic.com/mercurial/wiki/
    http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial
    http://www.selenic.com/mercurial/hgrc.5.html
    http://hgbook.red-bean.com/read/

-kto


Ulf Zibis wrote:

> Hi all,
>
> I've problems to find location of/for ~/.hgrc file. I don't find it
> anywhere.
>
> What you mean by ${HOME} on (german) Windows?
> - installdir: C:\Programme\TortoiseHg\
> - user settings: C:\Dokumente und
> Einstellungen\user\Anwendungsdaten\TortoiseHg\
>
> hg showconfig results:
>
> C:\Dokumente und Einstellungen\user\Anwendungsdaten\TortoiseHg>hg
> showconfig
> extdiff.cmd.vdiff=C:\\Programme\\TortoiseHg\\kdiff3
> extensions.extdiff=
> merge-tools.beyondcompare3.args=$local $other $base $output /ro
> /lefttitle=local
> /centerfile=base /righttitle=other /automerge /reviewconflicts /solo
> merge-tools.beyondcompare3.gui=True
> merge-tools.beyondcompare3.priority=-2
> merge-tools.beyondcompare3.regkey=Software\\Scooter Software\\Beyond
> Compare 3
> merge-tools.beyondcompare3.regname=ExePath
> merge-tools.diffmerge.args=--nosplash --merge --title1=base
> --title2=local --tit
> le3=other $base $local $other
> merge-tools.diffmerge.checkchanged=True
> merge-tools.diffmerge.gui=True
> merge-tools.diffmerge.priority=-7
> merge-tools.kdiff3.args=-L1 base --L2 local --L3 other $base $local
> $other -o $o
> utput
> merge-tools.kdiff3.fixeol=True
> merge-tools.kdiff3.gui=True
> merge-tools.kdiff3.priority=-1
> merge-tools.kdiff3.regappend=\\kdiff3.exe
> merge-tools.kdiff3.regkey=Software\\KDiff3
> merge-tools.p4merge.args=$base $local $other $output
> merge-tools.p4merge.gui=True
> merge-tools.p4merge.priority=-8
> merge-tools.p4merge.regappend=\\p4merge.exe
> merge-tools.p4merge.regkey=Software\\Perforce\\Environment
> merge-tools.p4merge.regname=P4INSTROOT
> merge-tools.tortoisemerge.args=/base:$output /mine:$local /theirs:$other
> /merged
> :$output
> merge-tools.tortoisemerge.gui=True
> merge-tools.tortoisemerge.priority=-9
> merge-tools.tortoisemerge.regkey=Software\\TortoiseSVN
> merge-tools.winmergeu.args=/e /ub /dl other /dr local $other $local $output
> merge-tools.winmergeu.fixeol=True
> merge-tools.winmergeu.gui=True
> merge-tools.winmergeu.priority=-10
> merge-tools.winmergeu.regkey=Software\\Thingamahoochie\\WinMerge\\
> merge-tools.winmergeu.regname=Executable
> ui.editor=notepad
> ui.ssh="C:\\Programme\\TortoiseHg\\TortoisePlink.exe" -ssh -2
> ui.username=UlfZibis
>
> Please give me some more hints.
>
> -Ulf
>
>
> Am 26.03.2009 23:34, Kelly O'Hair schrieb:
>>
>> I have no idea about TortoiseHg. I get the forest.py extension
>> directly from bitbucket.org so I know I have the latest one.
>> What gets shipped in TortoiseHg should work but I have no idea
>> what version it is.
>> The forest.py is just a text file, you can diff the one you have
>> with the bitbucket.org one to see if it differs at all.
>>
>> Watch out for TortoiseHg, it seems to enable many more hg extensions
>> than most people need by default. It should work fine, but I don't
>> like having lots of hg extensions I don't need enabled.
>>
>> Run 'hg showconfig' to see what extensions you have enabled.
>>
>> -kto
>>
>> Ulf Zibis wrote:
>>> 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
>>>>
>>>>
>>
>

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

by Alan Bateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kelly O'Hair wrote:

> I'm not a TortoiseHg user and don't do much direct development on
> Windows.
>
> I think on Windows the equivalent to ~/.hgrc is Mercurial.ini.
>
> You need to do some reading on Mercurial, TortoiseHg, etc., try:
>    http://www.selenic.com/mercurial/wiki/
>    http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial
>    http://www.selenic.com/mercurial/hgrc.5.html
>    http://hgbook.red-bean.com/read/
>
> -kto
I installed Mercurial (1.0.2) on Windows and added the forest extension
and it seems to work fine.

The .hgrc is in the $HOME directory (C:\Document and Settings\alanb in
my case):

[extensions]
forest=C:/hgforest/forest.py

It cloned our forest without any problem.

-Alan.

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

by Ulf Zibis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am 27.03.2009 17:25, Kelly O'Hair schrieb:
> I'm not a TortoiseHg user and don't do much direct development on
> Windows.
>
> I think on Windows the equivalent to ~/.hgrc is Mercurial.ini.

Thanks, this was the essential hint.
... and I discovered, that forest is just included in TortoiseHg and
could be enabled by removing a single ';' in Mercurial.ini. So I could
throw away all additional stuff from forest-crew. :-(
It remains, understanding, hoe forest works.

>
> You need to do some reading on Mercurial, TortoiseHg, etc., try:
>    http://www.selenic.com/mercurial/wiki/
>    http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial
>    http://www.selenic.com/mercurial/hgrc.5.html
>    http://hgbook.red-bean.com/read/

I've now read a lot of this, so now I begin to understand.

-Ulf


>
> -kto
>
>
> Ulf Zibis wrote:
>> Hi all,
>>
>> I've problems to find location of/for ~/.hgrc file. I don't find it
>> anywhere.
>>
>> What you mean by ${HOME} on (german) Windows?
>> - installdir: C:\Programme\TortoiseHg\
>> - user settings: C:\Dokumente und
>> Einstellungen\user\Anwendungsdaten\TortoiseHg\
>>
>> hg showconfig results:
>>
>> C:\Dokumente und Einstellungen\user\Anwendungsdaten\TortoiseHg>hg
>> showconfig
>> extdiff.cmd.vdiff=C:\\Programme\\TortoiseHg\\kdiff3
>> extensions.extdiff=
>> merge-tools.beyondcompare3.args=$local $other $base $output /ro
>> /lefttitle=local
>> /centerfile=base /righttitle=other /automerge /reviewconflicts /solo
>> merge-tools.beyondcompare3.gui=True
>> merge-tools.beyondcompare3.priority=-2
>> merge-tools.beyondcompare3.regkey=Software\\Scooter Software\\Beyond
>> Compare 3
>> merge-tools.beyondcompare3.regname=ExePath
>> merge-tools.diffmerge.args=--nosplash --merge --title1=base
>> --title2=local --tit
>> le3=other $base $local $other
>> merge-tools.diffmerge.checkchanged=True
>> merge-tools.diffmerge.gui=True
>> merge-tools.diffmerge.priority=-7
>> merge-tools.kdiff3.args=-L1 base --L2 local --L3 other $base $local
>> $other -o $o
>> utput
>> merge-tools.kdiff3.fixeol=True
>> merge-tools.kdiff3.gui=True
>> merge-tools.kdiff3.priority=-1
>> merge-tools.kdiff3.regappend=\\kdiff3.exe
>> merge-tools.kdiff3.regkey=Software\\KDiff3
>> merge-tools.p4merge.args=$base $local $other $output
>> merge-tools.p4merge.gui=True
>> merge-tools.p4merge.priority=-8
>> merge-tools.p4merge.regappend=\\p4merge.exe
>> merge-tools.p4merge.regkey=Software\\Perforce\\Environment
>> merge-tools.p4merge.regname=P4INSTROOT
>> merge-tools.tortoisemerge.args=/base:$output /mine:$local
>> /theirs:$other /merged
>> :$output
>> merge-tools.tortoisemerge.gui=True
>> merge-tools.tortoisemerge.priority=-9
>> merge-tools.tortoisemerge.regkey=Software\\TortoiseSVN
>> merge-tools.winmergeu.args=/e /ub /dl other /dr local $other $local
>> $output
>> merge-tools.winmergeu.fixeol=True
>> merge-tools.winmergeu.gui=True
>> merge-tools.winmergeu.priority=-10
>> merge-tools.winmergeu.regkey=Software\\Thingamahoochie\\WinMerge\\
>> merge-tools.winmergeu.regname=Executable
>> ui.editor=notepad
>> ui.ssh="C:\\Programme\\TortoiseHg\\TortoisePlink.exe" -ssh -2
>> ui.username=UlfZibis
>>
>> Please give me some more hints.
>>
>> -Ulf
>>
>>
>> Am 26.03.2009 23:34, Kelly O'Hair schrieb:
>>>
>>> I have no idea about TortoiseHg. I get the forest.py extension
>>> directly from bitbucket.org so I know I have the latest one.
>>> What gets shipped in TortoiseHg should work but I have no idea
>>> what version it is.
>>> The forest.py is just a text file, you can diff the one you have
>>> with the bitbucket.org one to see if it differs at all.
>>>
>>> Watch out for TortoiseHg, it seems to enable many more hg extensions
>>> than most people need by default. It should work fine, but I don't
>>> like having lots of hg extensions I don't need enabled.
>>>
>>> Run 'hg showconfig' to see what extensions you have enabled.
>>>
>>> -kto
>>>
>>> Ulf Zibis wrote:
>>>> 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
>>>>>
>>>>>
>>>
>>
>
>