On 02/05/14 04:07, fernan...@lgdmh.com wrote:
Hello,
I am having a problem when trying to create a codereview to fix an
issue already in the bug tracker. This is the first time I try to do
it, so maybe I am doing something very basic wrong. My proposed patch
is for the tryton client.
I have done the following:
- Download latest tryton using 'hg clone tryton'
- Make the change, and test it
- cd into 'tryton' (the first one, which has bin, tryton, etc. subfolders)
- hg review -m "tryton: Enforce text fields size"
- I get a message indicating the files that are not addet to version
control (my .project file from eclipse and the .pyc files). I answer
that I am sure to continue.
- It requests my password. I use my google account password.
- I get this:
---
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2]
** Mercurial Distributed SCM (version 2.2.2)
** Extensions loaded: hgnested, hgreview
Traceback (most recent call last):
File "/usr/bin/hg", line 38, in <module>
mercurial.dispatch.run()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
27, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
64, in dispatch
return _runcatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
87, in _runcatch
return _dispatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
696, in _dispatch
cmdpats, cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
472, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
786, in _runcommand
return checkargs()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
757, in checkargs
return cmdfunc()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line
693, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 463,
in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hgreview/__init__.py",
line 334, in review
response_body = rpc_server.Send('/upload', body, content_type=ctype)
File "/usr/local/lib/python2.7/dist-packages/hgreview/rietveld.py",
line 486, in Send
self._Authenticate()
File "/usr/local/lib/python2.7/dist-packages/hgreview/rietveld.py",
line 524, in _Authenticate
super(HttpRpcServer, self)._Authenticate()
File "/usr/local/lib/python2.7/dist-packages/hgreview/rietveld.py",
line 427, in _Authenticate
auth_token = self._GetAuthToken(credentials[0], credentials[1])
File "/usr/local/lib/python2.7/dist-packages/hgreview/rietveld.py",
line 381, in _GetAuthToken
e.headers, response_dict)
File "/usr/local/lib/python2.7/dist-packages/hgreview/rietveld.py",
line 283, in __init__
self.reason = args["Error"]
AttributeError: can't set attribute
---
This is my ~/.hgrc :
[extensions]
hgnested =
hgreview =
[review]
server = http://codereview.tryton.org
send_email = True
username = fernandog
---
Could anybody help me? Thanks in advance.
Regards,
Fernando
Try this on .hgrc
server=http://codereview.tryton.org/hg
Why do you no to use upload.py?
Oscar Alvarez