Try this. [auth] default.prefix = web2py.googlecode.com/hg/ default.username = [email protected] default.password = <password> default.schemes = https
-Thadeus On Tue, Dec 22, 2009 at 7:11 PM, Jonathan Lundell <[email protected]>wrote: > On Dec 22, 2009, at 4:59 PM, mdipierro wrote: > > > hg push > > Now *that's* unfriendly. > > > ** unknown exception encountered, details follow > > ** report bug details to http://www.selenic.com/mercurial/bts > > ** or [email protected] > > ** 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:[email protected]/hg/' > > make: *** [push] Error 1 > > > > > > On Dec 22, 6:50 pm, Jonathan Lundell <[email protected]> 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 <[email protected]> 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:[email protected]/hg/ > >> > >>>> -Thadeus > >> > >>>> On Tue, Dec 22, 2009 at 5:46 PM, mdipierro <[email protected]> > 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 = [email protected] > >>>>> default.password = <my password> > >>>>> default-push.prefix =https://web2py.googlecode.com/hg/ > >>>>> default-push.username< > https://web2py.googlecode.com/hg/%0Adefault-push.username>= > >>>>> [email protected] > >>>>> 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 [email protected]. > >>>>> To unsubscribe from this group, send email to > >>>>> [email protected]<web2py%[email protected]> > <web2py%[email protected]<web2py%[email protected]> > > > >>>>> . > >>>>> 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 [email protected]. > >>> To unsubscribe from this group, send email to > [email protected]<web2py%[email protected]> > . > >>> 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 [email protected]. > > To unsubscribe from this group, send email to > [email protected]<web2py%[email protected]> > . > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<web2py%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

