-
Bug
-
Resolution: Fixed
-
Minor
-
None
If a cache pull fails, there is an ungainly NPE later:
Building remotely on ... [...] $ hg pull pulling from ... abort: error: Connection timed out ERROR: Failed to update /hudson/workdir/hgcache/... ERROR: Failed to use repository cache for ... java.lang.NullPointerException at hudson.plugins.mercurial.MercurialSCM.cachedSource(MercurialSCM.java:661) at hudson.plugins.mercurial.MercurialSCM.update(MercurialSCM.java:495) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:436) at hudson.model.AbstractProject.checkout(AbstractProject.java:1044) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1241) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) [...] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev default abort: error: Connection timed out ERROR: Failed to determine incoming changes [...] $ hg log --rev . --template {node}