Hmm, just tried with a little google code project I've got and it worked fine. In my mercurial.ini file (same as .hgrc) I simply put:
[auth] project.prefix = project.googlecode.com/hg project.username = myusername project.password = myprojectpassword project.schemes = https That was with my google account as my username. I didn't even have to bother with setting [paths] in my mercurial config. I suspect that using your university email as the username is causing your problem. Replacing the @ with %40 as suggested by Jonathan should have fixed it. Perhaps try %%40 as suggested in http://code.google.com/p/support/wiki/MercurialFAQ though that should only be necessary for Windows users and I'm pretty sure you use a Mac. Perhaps try removing the http:// from your prefix so that it is just web2py.googlecode.com/hg instead of https://web2py.googlecode.com/hg ? I don't see the https:// being included in the hgrc manpage example. ~Brian On Dec 22, 6:59 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > hg push > ** unknown exception encountered, details follow > ** report bug details tohttp://www.selenic.com/mercurial/bts > ** or mercur...@selenic.com > ** Mercurial Distributed SCM (version 1.2.1) > ** Extensions loaded: > Traceback (most recent call last): > File "/usr/local/bin/hg", line 5, in <module> > pkg_resources.run_script('mercurial==unknown', 'hg') > File "/System/Library/Frameworks/Python.framework/Versions/2.5/ > Extras/lib/python/pkg_resources.py", line 442, in run_script > self.require(requires)[0].run_script(script_name, ns) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/ > Extras/lib/python/pkg_resources.py", line 1160, in run_script > execfile(script_filename, namespace, namespace) > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/EGG-INFO/scripts/hg", line 27, in <module> > mercurial.dispatch.run() > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/dispatch.py", line 16, in run > sys.exit(dispatch(sys.argv[1:])) > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/dispatch.py", line 25, in dispatch > return _runcatch(u, args) > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/dispatch.py", line 41, in _runcatch > return _dispatch(ui, args) > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/dispatch.py", line 273, in _dispatch > lui.readconfig(os.path.join(path, ".hg", "hgrc")) > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/ui.py", line 166, in readconfig > self.fixconfig(root=root) > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/ui.py", line 207, in fixconfig > pathsitems = cdata.items('paths') > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/ConfigParser.py", line 557, in items > for option in options] > File "/Library/Python/2.5/site-packages/mercurial-unknown-py2.5- > macosx-10.5-i386.egg/mercurial/util.py", line 207, in _interpolate > option, rawval, vars) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/ConfigParser.py", line 593, in _interpolate > self._interpolate_some(option, L, rawval, section, vars, 1) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/ConfigParser.py", line 634, in _interpolate_some > "'%%' must be followed by '%%' or '(', found: %r" % (rest,)) > ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or > '(', found: '%40cs.depaul.edu:passw...@web2py.googlecode.com/hg/' > make: *** [push] Error 1 > > On Dec 22, 6:50 pm, Jonathan Lundell <jlund...@pobox.com> wrote: > > > > > On Dec 22, 2009, at 4:41 PM, mdipierro wrote: > > > > does not work gives me an error because the username is my email > > > address and contains @. > > > What if you encode it as %40? > > > > On Dec 22, 5:59 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > > >> You need to include the username/password as an in-line to the URL. > > > >> default = https://<username>:<password>@web2py.googlecode.com/hg/ > > > >> so... > > > >> https://mdipierro:s343...@web2py.googlecode.com/hg/ > > > >> -Thadeus > > > >> On Tue, Dec 22, 2009 at 5:46 PM, mdipierro <mdipie...@cs.depaul.edu> > > >> wrote: > > >>> I have this in my .hg/hgrc > > > >>> [paths] > > >>> default =https://web2py.googlecode.com/hg/ > > >>> default-push <https://web2py.googlecode.com/hg/%0Adefault-push> = > > >>>https://web2py.googlecode.com/hg/ > > > >>> [auth] > > >>> default.prefix =https://web2py.googlecode.com/hg/ > > >>> default.username = mdipie...@cs.depaul.edu > > >>> default.password = <my password> > > >>> default-push.prefix =https://web2py.googlecode.com/hg/ > > >>> default-push.username<https://web2py.googlecode.com/hg/%0Adefault-push.username>= > > >>> mdipie...@cs.depaul.edu > > >>> default-push.password = <my password> > > > >>> It still asks me for username and password every time I do > > > >>> Why? What am I doing wrong? > > > >>> Massimo > > > >>> -- > > > >>> You received this message because you are subscribed to the Google > > >>> Groups > > >>> "web2py-users" group. > > >>> To post to this group, send email to web...@googlegroups.com. > > >>> To unsubscribe from this group, send email to > > >>> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > > >>> . > > >>> For more options, visit this group at > > >>>http://groups.google.com/group/web2py?hl=en. > > > > -- > > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group. > > > To post to this group, send email to web...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > web2py+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/web2py?hl=en. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.