#!/bin/bash

svn log svn+ssh://robot-webmaster@arcadia.yandex.ru/arc/trunk/arcadia -r \
    "{`date +'%Y-%m-%d' -d '7 days ago'`}:HEAD" \
    | grep -E 'r[0-9]+ \|' \
    | sed $'s/ | /\t/g' \
    | grep -E '^r.*line.*' \
    | yt --proxy hahn write //home/webmaster/prod/analytics/dev/commits.tail \
        --format '<columns=[Revision;Login;Period;Lines]>schemaful_dsv'
