• 
      

    Split up the code for the evolve management command.

    Review Request #5150 — Created Dec. 20, 2013 and submitted — Latest diff uploaded

    Information

    Django Evolution
    master

    Reviewers

    Split up the code for the evolve management command.

    The evolve command was one large, complicated function with a scattering
    of variables, some of which overwrote others.

    This cleans it up a little bit by taking the big chunks of logic and
    placing them in their own functions. Several of the common variables are
    also now member variables.

    It also stops using the print statement for output, and now uses
    self.stdout.write.

    Tried all the major options to the evolve command. Didn't hit any problems.
    The evolution, hint, and SQL output looked correct.