)]}'
{"openstack_releases/cmds/new_release.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"31093e808b7f08d2783c755fc439e2a3e583cc33","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u0027\u0027\u0027.lstrip(\u0027\\n\u0027)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"SERIES_TO_BRANCH \u003d {"},{"line_number":38,"context_line":"    \u0027kilo\u0027: \u0027stable/kilo\u0027,"},{"line_number":39,"context_line":"    \u0027liberty\u0027: \u0027stable/liberty\u0027,"},{"line_number":40,"context_line":"    \u0027mitaka\u0027: \u0027stable/mitaka\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa0719c6_b78ed8cd","line":37,"updated":"2016-03-23 19:16:51.000000000","message":"How about instead of a stack mapping, we look for an origin/stable/$series branch and use that if found, or master if not found?","commit_id":"d2c3d2587b5f9604f2ee4df888fab2c567a4f4a2"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"bf854f9245232c83ee723dfbbdc2eecb3b1071fd","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\u0027\u0027\u0027.lstrip(\u0027\\n\u0027)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"SERIES_TO_BRANCH \u003d {"},{"line_number":38,"context_line":"    \u0027kilo\u0027: \u0027stable/kilo\u0027,"},{"line_number":39,"context_line":"    \u0027liberty\u0027: \u0027stable/liberty\u0027,"},{"line_number":40,"context_line":"    \u0027mitaka\u0027: \u0027stable/mitaka\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa0719c6_a81b15c9","line":37,"in_reply_to":"fa0719c6_b78ed8cd","updated":"2016-03-23 20:10:09.000000000","message":"Done","commit_id":"d2c3d2587b5f9604f2ee4df888fab2c567a4f4a2"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"98f875e9b2a5fc26be634d585645dc553ac769a4","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        gitutils.clone_repo(workdir, project[\u0027repo\u0027])"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        branches \u003d gitutils.get_branches(workdir, project[\u0027repo\u0027])"},{"line_number":109,"context_line":"        version \u003d \u0027stable/%s\u0027 % series"},{"line_number":110,"context_line":"        if version not in branches:"},{"line_number":111,"context_line":"            version \u003d \u0027master\u0027"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_3f74abfb","line":109,"updated":"2016-04-18 18:22:06.000000000","message":"This should look for origin/stable/$series because we don\u0027t want to require everyone to have local tracking branches for the script to work.","commit_id":"a085e31d4d34a6541d5fd9ec603fa6997fd32912"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"1ae9aac8adee267705166bcaf0c8c37650645c1d","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        gitutils.clone_repo(workdir, project[\u0027repo\u0027])"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        branches \u003d gitutils.get_branches(workdir, project[\u0027repo\u0027])"},{"line_number":109,"context_line":"        version \u003d \u0027stable/%s\u0027 % series"},{"line_number":110,"context_line":"        if version not in branches:"},{"line_number":111,"context_line":"            version \u003d \u0027master\u0027"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_6b2a0e80","line":109,"in_reply_to":"1a122d0e_2e411baa","updated":"2016-04-22 13:41:19.000000000","message":"Done","commit_id":"a085e31d4d34a6541d5fd9ec603fa6997fd32912"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c465dcc7518ec29410b22bf05a599c42b6ae15f2","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        gitutils.clone_repo(workdir, project[\u0027repo\u0027])"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        branches \u003d gitutils.get_branches(workdir, project[\u0027repo\u0027])"},{"line_number":109,"context_line":"        version \u003d \u0027stable/%s\u0027 % series"},{"line_number":110,"context_line":"        if version not in branches:"},{"line_number":111,"context_line":"            version \u003d \u0027master\u0027"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_2e411baa","line":109,"in_reply_to":"1a122d0e_3f74abfb","updated":"2016-04-18 20:41:39.000000000","message":"Interestingly though, it works as is. The tool fetches git repo on every invocation, it does not reuse any local clone.","commit_id":"a085e31d4d34a6541d5fd9ec603fa6997fd32912"}],"openstack_releases/gitutils.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"98f875e9b2a5fc26be634d585645dc553ac769a4","unresolved":false,"context_lines":[{"line_number":118,"context_line":"def get_branches(workdir, repo):"},{"line_number":119,"context_line":"    try:"},{"line_number":120,"context_line":"        output \u003d subprocess.check_output("},{"line_number":121,"context_line":"            [\u0027git\u0027, \u0027branch\u0027],"},{"line_number":122,"context_line":"            cwd\u003dos.path.join(workdir, repo),"},{"line_number":123,"context_line":"            stderr\u003dsubprocess.STDOUT,"},{"line_number":124,"context_line":"        ).strip()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_3f1dcbbd","line":121,"updated":"2016-04-18 18:22:06.000000000","message":"You probably want a \"-a\" option here to get all branches, not just the ones for which someone has a local tracking branch.","commit_id":"a085e31d4d34a6541d5fd9ec603fa6997fd32912"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"1ae9aac8adee267705166bcaf0c8c37650645c1d","unresolved":false,"context_lines":[{"line_number":118,"context_line":"def get_branches(workdir, repo):"},{"line_number":119,"context_line":"    try:"},{"line_number":120,"context_line":"        output \u003d subprocess.check_output("},{"line_number":121,"context_line":"            [\u0027git\u0027, \u0027branch\u0027],"},{"line_number":122,"context_line":"            cwd\u003dos.path.join(workdir, repo),"},{"line_number":123,"context_line":"            stderr\u003dsubprocess.STDOUT,"},{"line_number":124,"context_line":"        ).strip()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_4b4bd259","line":121,"in_reply_to":"1a122d0e_0e3c1f2e","updated":"2016-04-22 13:41:19.000000000","message":"Done","commit_id":"a085e31d4d34a6541d5fd9ec603fa6997fd32912"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c465dcc7518ec29410b22bf05a599c42b6ae15f2","unresolved":false,"context_lines":[{"line_number":118,"context_line":"def get_branches(workdir, repo):"},{"line_number":119,"context_line":"    try:"},{"line_number":120,"context_line":"        output \u003d subprocess.check_output("},{"line_number":121,"context_line":"            [\u0027git\u0027, \u0027branch\u0027],"},{"line_number":122,"context_line":"            cwd\u003dos.path.join(workdir, repo),"},{"line_number":123,"context_line":"            stderr\u003dsubprocess.STDOUT,"},{"line_number":124,"context_line":"        ).strip()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_0e3c1f2e","line":121,"in_reply_to":"1a122d0e_3f1dcbbd","updated":"2016-04-18 20:41:39.000000000","message":"See the comment in the previous file.","commit_id":"a085e31d4d34a6541d5fd9ec603fa6997fd32912"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"71560da5ecda3bba0214d9ac7ceb260f2e255ef0","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            cwd\u003dos.path.join(workdir, repo),"},{"line_number":123,"context_line":"            stderr\u003dsubprocess.STDOUT,"},{"line_number":124,"context_line":"        ).strip()"},{"line_number":125,"context_line":"        return ["},{"line_number":126,"context_line":"            branch"},{"line_number":127,"context_line":"            for branch in output.split()"},{"line_number":128,"context_line":"        ]"}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_b8a4c14a","line":125,"updated":"2016-05-11 15:46:39.000000000","message":"This could just be \"return output.split()\"","commit_id":"64b3319dc98c27c8c798f31b4d87ea252ba70c41"}]}
