django1/django/core/management
Brad Walker 54d3dcbc51 Removed reduce() usage in makemigrations; refs #23796.
A lambda all_items_equal() replaced a reduce() that was broken for potential
3+-way merges. A reduce(operator.eq, ...) accumulates bools and can't
generically check equality of all items in a sequence:

>>> bool(reduce(operator.eq, [('migrations', '0001_initial')] * 3))
False

The code now counts the number of common ancestors to calculate slice offsets
for the branches. Each branch shares the same number of common ancestors.

The common_ancestor for loop statement had incomplete branch coverage.
2014-11-20 14:33:30 -05:00
..
commands Removed reduce() usage in makemigrations; refs #23796. 2014-11-20 14:33:30 -05:00
__init__.py Fixed #23685 -- Made call_command skip checks by default 2014-10-20 17:26:00 +02:00
base.py Clarified BaseCommand --traceback behavior. 2014-10-30 14:15:31 -04:00
color.py Refactored color_style() and no_style() to improve testability. Refs #23663. 2014-10-22 11:27:00 +07:00
sql.py Normalized opening a file and decoding its content. 2014-11-11 22:54:27 +01:00
templates.py Simplified handle_extensions management utility 2014-11-17 09:24:56 +01:00
utils.py Simplified handle_extensions management utility 2014-11-17 09:24:56 +01:00