ericmckean / rietveld

Automatically exported from code.google.com/p/rietveld
Apache License 2.0
0 stars 0 forks source link

upload.py: set HGPLAIN when calling hg #515

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure a non-default ui.style setting in ~./hgrc
2. Run upload.py

What is the expected output? What do you see instead?

It should work, but I get an error like 
"Got error status from ['hg', 'status', '--rev', '59 -0500  Victor Stinner 
<victor.stinner@gmail.com>\x1b[0m\n\n\tTulip issue #219', '-u', '.']:"

If I run "HGPLAIN= upload.py" it works as expected.

What browser are you using?  What version? On what operating system?

Browser n/a; OSX 10.10

At what URL are you accessing Rietveld?  codereview.appspot.com

Please provide any additional information below.

If the HGPLAIN environment variable is set (to any value including empty), hg 
will ignore any settings that change output formats; scripts that parse hg's 
output should generally set this variable to be robust against non-default 
configurations.

Original issue reported on code.google.com by ben.darn...@gmail.com on 26 Jan 2015 at 1:12