On 30 Oct, 08:20, "Zingo Andersen" <[EMAIL PROTECTED]>
wrote:
> I was more thinking of the extension used by mercurial eclipse during merge
> like imerge (was an extension before
> 1.something). But I think it was quite obvious from the log when that happend
> so I don't think that was your problem
I have cloned your repository and built my own version with some
debugging statements in it. I can't seem to work out how to debug a
plugin in Eclipse. :(
Anyway, showing the history of a file seems to perform 2 Mercurial
commands first:
C:\tools\Python25\Scripts\hg.bat log --debug --style C:\development
\.metadata\.plugins\com.vectrace.MercurialEclipse\log_style -l 500 -f
C:\development\TestMercurial\src\com\dms\mercurial\Class2.java
which outputs stuff like:
<br v=""/>
<tg v="tip"/>
<rv v="7"/>
<ns v="3cae9fa69020"/>
<nl v="3cae9fa69020bccb87f3da738d1e90505fb6ee5e"/>
<di v="2008-10-30 13:29 +0000"/>
<da v="37 minutes"/>
<au v="david"/>
<pr v="6:71f1c86274cc3dd153238acdc808313fb49803c4
-1:0000000000000000000000000000000000000000 "/>
<de>Test 2</de>
</cs>
and then it executes (or tries to) and note the newline before the
resource name, also the lack of path information on the resource:
C:\tools\Python25\Scripts\hg.bat glog --config extensions.graphlog= --
template *{rev}
Class2.java
Assuming this actually executes only the first line:
C:\tools\Python25\Scripts\hg.bat glog --config extensions.graphlog= --
template *{rev}
the output is:
@
|
o
|
o
|
o
|
o
|
o
|
o
|
o
Note that the first line contains "@", which ties in with the
exception I am getting:
java.lang.NumberFormatException: For input string: "@"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at
com.vectrace.MercurialEclipse.model.GChangeSet.<init>(GChangeSet.java:
42)
at
com.vectrace.MercurialEclipse.commands.HgGLogClient.load(HgGLogClient.java:
51)
at
com.vectrace.MercurialEclipse.commands.HgGLogClient.<init>(HgGLogClient.java:
31)
at
com.vectrace.MercurialEclipse.history.MercurialHistory.refresh(MercurialHistory.java:
209)
at com.vectrace.MercurialEclipse.history.MercurialHistoryPage
$RefreshMercurialHistory.run(MercurialHistoryPage.java:107)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I am wondering if this should be calling log rather than glog at this
point as when i try that at the command line it that outputs:
*7*6*5*4*2
which ties in with the NumberFormayException.
If I work out how to run in the debugger I will step through the code
a to try to track this down, but do you have any ideas from the above?
Thanks,
BraileTrail
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MercurialEclipse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mercurialeclipse?hl=en
-~----------~----~----~----~------~----~------~--~---