Error:
=======
The execute function sets additional environment variables (contained in
the 'env' parameter) incorrectly.
Actual (trunk): env.update(os.environ)
Proposed: os.environ.update(env)
Background:
============
The SVNClient in post-review calls "LANG=en_US.UTF-8 svn info" to retrieve
the configuration of the current repository. Setting the LANG variable is
necessary to extract the repository root in environments where english is
not the default language. Indeed, line 580 extracts the repository root
thus: m = re.search(r'^Repository Root: (.+)$', data, re.M), where "data"
is the output of `svn info`. However, svn info might output "Racine du
dépôt :" instead of "Repository Root:" in non-english environments.
Setting the LANG variable is achieved through the execute function (l.1254)
which allows as second parameter a dictionary mapping new environment
variables to their desired values.
What's the URL of the page containing the problem?
======================================================
http://code.google.com/p/reviewboard/source/browse/trunk/reviewboard/contrib/tools/post-review
line 1265
What steps will reproduce the problem?
===========================================
1. Get an environment with non-english locales
2. Check out a subversion repository
3. run post-review
What is the expected output? What do you see instead?
=======================================================
post-review should submit the changes. Instead, The following error message
appears:
"The current directory does not contain a checkout from a
supported source code repository."
What operating system are you using? What browser?
========================================================
Debian Etch
Please provide any additional information below.
====================================================
My system's locale is fr_FR.UTF-8