)]}'
{"rally/cli/manage.py":[{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"48c6b7de7dc8d9ead340d23061365a17c392ee3b","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def output_migration_result(start_revision, method_name):"},{"line_number":28,"context_line":"    \"\"\"Print migration result.\"\"\""},{"line_number":29,"context_line":"    # NOTE(rpomyshlennikov): there is one problem to make this a decorator,"},{"line_number":30,"context_line":"    # we use inspect.getargspec() in rally.cli.cliutils.validate_args"},{"line_number":31,"context_line":"    print(\"{method_name} processed.\".format("},{"line_number":32,"context_line":"        method_name\u003dmethod_name.capitalize()))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_a758a433","line":29,"updated":"2016-04-06 05:08:59.000000000","message":"you can use contextlib and with statement instead:\n\n   https://docs.python.org/2/library/contextlib.html","commit_id":"395cd0c58174ac48d57a0091e39958f37e31d2b5"},{"author":{"_account_id":19267,"name":"Rodion Promyshlennikov","email":"rpromyshlennikov@mirantis.com","username":"rodion"},"change_message_id":"236e48b36e1a20bcf1e44bd51f5b3ea2c9508b84","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def output_migration_result(start_revision, method_name):"},{"line_number":28,"context_line":"    \"\"\"Print migration result.\"\"\""},{"line_number":29,"context_line":"    # NOTE(rpomyshlennikov): there is one problem to make this a decorator,"},{"line_number":30,"context_line":"    # we use inspect.getargspec() in rally.cli.cliutils.validate_args"},{"line_number":31,"context_line":"    print(\"{method_name} processed.\".format("},{"line_number":32,"context_line":"        method_name\u003dmethod_name.capitalize()))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_6c81fa8e","line":29,"in_reply_to":"9a061dce_a758a433","updated":"2016-04-07 12:20:28.000000000","message":"Done","commit_id":"395cd0c58174ac48d57a0091e39958f37e31d2b5"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"48c6b7de7dc8d9ead340d23061365a17c392ee3b","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    \"\"\"Print migration result.\"\"\""},{"line_number":29,"context_line":"    # NOTE(rpomyshlennikov): there is one problem to make this a decorator,"},{"line_number":30,"context_line":"    # we use inspect.getargspec() in rally.cli.cliutils.validate_args"},{"line_number":31,"context_line":"    print(\"{method_name} processed.\".format("},{"line_number":32,"context_line":"        method_name\u003dmethod_name.capitalize()))"},{"line_number":33,"context_line":"    current_revision \u003d db.schema_revision()"},{"line_number":34,"context_line":"    if start_revision !\u003d current_revision:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_9c133366","line":31,"updated":"2016-04-06 05:08:59.000000000","message":"usually in code we do something like this: \n\n  print(\"%s processed.\" % method_name.capitalize())\n\nit\u0027s shorter and simpler to read.","commit_id":"395cd0c58174ac48d57a0091e39958f37e31d2b5"},{"author":{"_account_id":19267,"name":"Rodion Promyshlennikov","email":"rpromyshlennikov@mirantis.com","username":"rodion"},"change_message_id":"236e48b36e1a20bcf1e44bd51f5b3ea2c9508b84","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    \"\"\"Print migration result.\"\"\""},{"line_number":29,"context_line":"    # NOTE(rpomyshlennikov): there is one problem to make this a decorator,"},{"line_number":30,"context_line":"    # we use inspect.getargspec() in rally.cli.cliutils.validate_args"},{"line_number":31,"context_line":"    print(\"{method_name} processed.\".format("},{"line_number":32,"context_line":"        method_name\u003dmethod_name.capitalize()))"},{"line_number":33,"context_line":"    current_revision \u003d db.schema_revision()"},{"line_number":34,"context_line":"    if start_revision !\u003d current_revision:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_0c767ed6","line":31,"in_reply_to":"9a061dce_9c133366","updated":"2016-04-07 12:20:28.000000000","message":"Done","commit_id":"395cd0c58174ac48d57a0091e39958f37e31d2b5"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"48c6b7de7dc8d9ead340d23061365a17c392ee3b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"              \"from {start} to {end} revision.\".format(start\u003dstart_revision,"},{"line_number":37,"context_line":"                                                       end\u003dcurrent_revision))"},{"line_number":38,"context_line":"    else:"},{"line_number":39,"context_line":"        print(\"Database was not migrated, start and end revisions \""},{"line_number":40,"context_line":"              \"are the same ({revision}).\".format(revision\u003dcurrent_revision))"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_6727acb6","line":39,"updated":"2016-04-06 05:08:59.000000000","message":"Just put message that \"Database is already up to date.\"","commit_id":"395cd0c58174ac48d57a0091e39958f37e31d2b5"},{"author":{"_account_id":19267,"name":"Rodion Promyshlennikov","email":"rpromyshlennikov@mirantis.com","username":"rodion"},"change_message_id":"236e48b36e1a20bcf1e44bd51f5b3ea2c9508b84","unresolved":false,"context_lines":[{"line_number":36,"context_line":"              \"from {start} to {end} revision.\".format(start\u003dstart_revision,"},{"line_number":37,"context_line":"                                                       end\u003dcurrent_revision))"},{"line_number":38,"context_line":"    else:"},{"line_number":39,"context_line":"        print(\"Database was not migrated, start and end revisions \""},{"line_number":40,"context_line":"              \"are the same ({revision}).\".format(revision\u003dcurrent_revision))"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_2c7b82c2","line":39,"in_reply_to":"9a061dce_6727acb6","updated":"2016-04-07 12:20:28.000000000","message":"Done","commit_id":"395cd0c58174ac48d57a0091e39958f37e31d2b5"}]}
