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 156723 - Prefer local hyperlinks for console output
Summary: Prefer local hyperlinks for console output
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Hudson (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-13 21:21 UTC by Jesse Glick
Modified: 2009-04-05 18:13 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-01-13 21:21:25 UTC
Currently console output from a job only links to the remote workspace. Would prefer to link to a local copy of sources
whenever feasible.

For example, http://test.geomatys.fr/hudson/job/GeoAPI/ws/trunk/.svn/entries lists:

https://geoapi.svn.sourceforge.net/svnroot/geoapi/trunk        [URL of this checkout]
https://geoapi.svn.sourceforge.net/svnroot/geoapi              [URL of server root]

whereas ${projdir}/.svn/entries (found via ProjectHudsonProvider?) might list:

https://geoapi.svn.sourceforge.net/svnroot/geoapi/trunk/geoapi [what is checked out here]
https://geoapi.svn.sourceforge.net/svnroot/geoapi              [URL of server root]

Assuming the server root URLs are the same (modulo protocol & minor hostname differences), you can infer that
http://test.geomatys.fr/hudson/job/GeoAPI/ws/geoapi corresponds to ${projdir}.

Probably a bit easier for Hg since you just need to find the .hg root. Two repos can be considered similar in case
.hg/store/00changelog.i are identical up to the first 1Kb or so.

Now if the file contents are identical (modulo CRLF), you can just open the local one. If they are different but
similar, you can perhaps open the local after adjusting line number.
Comment 1 Jesse Glick 2009-02-09 19:43:04 UTC
cdev #141e0c8c21ce should do it for SVN. (Hg support in issue #158034 etc.) For now, always opening the local file if it
can be located, without any attempt to check for version skew.
Comment 2 Quality Engineering 2009-03-17 08:35:57 UTC
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/141e0c8c21ce
User: Jesse Glick <jglick@netbeans.org>
Log: #156723: making an attempt to hyperlink to a local project when this can be aligned with the remote workspace.
Also refactoring ProjectHudsonProvider to be a global service, which is more flexible.