Fix problems with "key=" lines in hgrc files.
Review Request #5748 — Created April 28, 2014 and submitted
The code that parses hgrc was assuming that all key=value lines had a non-empty
value. This failed if the config included lines that didn't.
Created an hgrc file with this configuration and ran rbtools commands. Saw that
the bug reproduced before the change and didn't after.
Description | From | Last Updated |
---|---|---|
We can simplify this a bit: if len(line) == 2: key, value = line else: key = line[0] value = … |
chipx86 |
- Commit:
-
617de5a724d21ff32a02d28ef3cb2909a2996954005b7879123b604dc04b597da0a6438067f0329e
- Diff:
-
Revision 2 (+7 -1)