Andrew Godwin committed 4f9e1e6 Merge

Branch merge

Comments (0)

Files changed (2)


         if self.dry_run:
             return []
-        get_logger().debug('execute "%s" with params "%s"' % (sql, params))
+        get_logger().debug(u'execute "%s" with params "%s"' % (sql, params))
             cursor.execute(sql, params)


     "Takes a set of possible problems and gets the actual issues out of it."
     result = []
     for last, migration in problems:
+        checked = set([])
         # 'Last' is the last applied migration. Step back from it until we
         # either find nothing wrong, or we find something.
         to_check = list(last.dependencies)
         while to_check:
             checking = to_check.pop()
+            if checking in checked:
+                continue
+            checked.add(checking)
             if checking not in done:
                 # That's bad. Error.
                 if verbosity: