Working with NetBeans Mercurial Repository
Just back from snowboarding. I tried to hg pull -uv to update to the latest code base of NetBeans, but got:
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 0.9.4)
Traceback (most recent call last):
File "/opt/local/bin/hg", line 11, in ?
mercurial.commands.run()
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py", line 3110, in run
sys.exit(dispatch(sys.argv[1:], argv0=sys.argv[0]))
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py", line 3107, in dispatch
return cmdutil.runcatch(u, args, argv0=argv0)
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py", line 37, in runcatch
return dispatch(ui, args, argv0=argv0)
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py", line 364, in dispatch
ret = runcommand(ui, options, cmd, d)
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py", line 417, in runcommand
return checkargs()
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py", line 373, in checkargs
return cmdfunc()
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py", line 356, in
It was the second time I encountered this issue, I don't know why, so, I just upgraded my Mercurial from 0.9.4 to 0.9.5, and tried to get a new clone. I typed:
hg clone http://hg.netbeans.org
Everything seemed going smoothly, I had a new repository now. I copied my old hgrc to replace the un-configured one, and typed ant build, guess what? I got a lot of package javax.help does not exist, build failed. I knew that was because of that the binary files were not downloaded properly. It seemed I should leave the original hdrc there, and let ant hook the external.py. So I removed all extra lines except the original content of hgrc:
[paths] default = http://hg.netbeans.org/main/
And tried ant build again, this time it went smoothly again.
LESSON: Do not modify hgrc before you do first "ant build", which will hook external.py and add "decode", "encode" automatically.
![(please configure the [header_logo] section in trac.ini)](/chrome/!97aa87b5/site/your_project_logo.png)
rss
Comments
It's late (1.30 am in Ireland) and you saved my bacon with this post - happy boarding :)
JR