def get_branch_by_revision_id(self, app_name, revision_id, app_path):
        with lcd(os.path.join(os.path.abspath('.'), app_name)):
            branch_name = local(
                self.cmd_branch_by_revision % dict(revision_id=revision_id),
                capture=True)