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 161912 - Permit job creation from repo with no remote path in case server is localhost
Summary: Permit job creation from repo with no remote path in case server is localhost
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Hudson (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 178528 (view as bug list)
Depends on:
Blocks: 180628
  Show dependency tree
 
Reported: 2009-04-03 16:26 UTC by Jesse Glick
Modified: 2010-02-16 21:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-04-03 16:26:15 UTC
Useful for testing - should be able to initialize project as an Hg repo and add it without further ado. Only makes sense
if Hudson is running on the same machine.
Comment 1 Jesse Glick 2009-09-21 23:33:13 UTC
cdev #d332ca3aa078
Comment 2 Quality Engineering 2009-09-22 21:39:18 UTC
Integrated into 'main-golden', will be available in build *200909221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d332ca3aa078
User: Jesse Glick <jglick@netbeans.org>
Log: #161912: if Hg repo addr is local, show a warning but do not prevent you from creating the job.
Comment 3 Jesse Glick 2009-11-03 17:46:47 UTC
If .hg/hgrc does not exist, shows

FINE [org.netbeans.modules.hudson.mercurial.HudsonMercurialSCM]: file:/tmp/JavaLibrary1/ is not an Hg repo

If exists but empty, shows

FINE [org.netbeans.modules.hudson.mercurial.HudsonMercurialSCM]: file:/tmp/JavaLibrary1/.hg/hgrc does not specify
paths.default or default-pull

Workaround: create hgrc and have it point to itself:

[paths]
default=/tmp/JavaLibrary1
Comment 4 Jesse Glick 2009-11-16 10:22:19 UTC
Did not make it for 6.8.
Comment 5 Jesse Glick 2009-12-14 08:56:58 UTC
*** Bug 178528 has been marked as a duplicate of this bug. ***
Comment 6 Petr Jiricka 2010-02-12 07:15:34 UTC
I vote for fixing this. For testing the Hudson integration the workaround is acceptable, but in a demo it really does not look good (and the workaround is something one can not do as pre-work before the demo, as the hg repository is typically created during the demo.
Comment 7 Jesse Glick 2010-02-12 10:18:39 UTC
Right, this is mostly useful for demos rather than realistic work.
Comment 8 vernons 2010-02-13 03:35:09 UTC
In addition to demos, this is also useful in a tiered CI strategy, where you perform CI on the developers workstation before promoting upstream (if CI and any required reviews succeed).
Comment 9 Jesse Glick 2010-02-16 12:09:22 UTC
core-main #87e9dd96eae9
Comment 10 Quality Engineering 2010-02-16 21:51:34 UTC
Integrated into 'main-golden', will be available in build *201002170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/87e9dd96eae9
User: Jesse Glick <jglick@netbeans.org>
Log: #161912: permit a local repo with no paths.default (or even hgrc) to be used for a job.