This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 128402 - Unable to get original file (was: Many warnings when working on local file in Hg repository)
Summary: Unable to get original file (was: Many warnings when working on local file in...
Status: RESOLVED DUPLICATE of bug 129980
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 10:22 UTC by Lukas Hasik
Modified: 2008-03-20 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
too much warnings - do we need all of them? (23.82 KB, text/plain)
2008-02-26 10:22 UTC, Lukas Hasik
Details
proposed patch (1.14 KB, patch)
2008-02-26 14:57 UTC, Padraig Obriain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-02-26 10:22:15 UTC
Product Version: NetBeans IDE Dev (Build 20080226063742)
Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: F:\netbeans\userdirs\nb61-0225

-I'm working/editing in NB a file in Hg repository
-the file hasn't been added to the repository yet
->there is tooo much warnings in console - INFO [org.netbeans.modules.mercurial.Mercurial]: Unable to get original file
F:\prace\hg\main\ide.kit\test\qa-functional\src\org\netbeans\test\permanentUI\utils\Utilities.java
Comment 1 Lukas Hasik 2008-02-26 10:22:56 UTC
Created attachment 57249 [details]
too much warnings - do we need all of them?
Comment 2 Padraig Obriain 2008-02-26 11:11:42 UTC
Obviously, there are too many warnings.

What are you doing that causes the warnings?

I am unable to create the problem when I create and edit a new file.
Comment 3 Lukas Hasik 2008-02-26 11:23:23 UTC
My scenario is
1, have a clone of nb hg repository
2,start NB IDE
3, open a project (ide.kit)
4, create new packages to the project (to Functional Test Packages)
5, create new java files in the new package
6, edit these files
7, exception in console appears every few minutes
Comment 4 Padraig Obriain 2008-02-26 14:57:27 UTC
Created attachment 57277 [details]
proposed patch
Comment 5 Padraig Obriain 2008-02-26 14:58:32 UTC
Patch pushed in 597b27dad56f
Comment 6 Lukas Hasik 2008-02-29 09:30:17 UTC
still reproducible with 2/28 build. 
Now there is also an exception. Please note that I'm working with a repository file not local one as in previous case.

INFO [org.netbeans.modules.mercurial.Mercurial]: Unable to get original file
java.io.IOException: Unable to get BASE revision of
F:\prace\hg\main\mobility.midpexamples\NetworkDemo\src\socket\Server.java
[catch] at org.netbeans.modules.mercurial.Mercurial.getOriginalFile(Mercurial.java:323)
        at org.netbeans.modules.mercurial.MercurialVCS.getOriginalFile(MercurialVCS.java:109)
        at org.netbeans.modules.versioning.diff.DiffSidebar.getText(DiffSidebar.java:753)
        at org.netbeans.modules.versioning.diff.DiffSidebar.access$900(DiffSidebar.java:88)
        at org.netbeans.modules.versioning.diff.DiffSidebar$RefreshDiffTask.fetchOriginalContent(DiffSidebar.java:704)
        at org.netbeans.modules.versioning.diff.DiffSidebar$RefreshDiffTask.computeDiff(DiffSidebar.java:677)
        at org.netbeans.modules.versioning.diff.DiffSidebar$RefreshDiffTask.run(DiffSidebar.java:667)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 7 Padraig Obriain 2008-02-29 10:23:47 UTC
Can you reproduce it with "-J-Dorg.netbeans.modules.mercurial.level=100" added to netbeans_default_options in
netbeans.conf and attach message log?
Comment 8 Padraig Obriain 2008-03-20 09:58:26 UTC
I believe that this is the same as #129980 so I am closing as a duplicate.

*** This issue has been marked as a duplicate of 129980 ***