=====================
This small python script takes the history of several mercurial repositories, and forms a simple time report, based on commits date and time.
Before using it please be sure that Google preserve history properly. It is even suggested to make a copy of your Google Spreadsheet. There is no guarantee that this script won't damage your already exist data, as it does pretty aggressive resizing of the spreadsheet. It is designed to preserve the old history, but there is no guarantee. Also be sure that Spreadsheet has supported template. Otherwise you probably loose your data. Use this tool on your own risk.!!!
This script uses [gspread] (https://github.com/burnash/gspread) and [dateutil] (http://labix.org/python-dateutil), so you should install it before running the script. Just type:
pip install gspread
pip install python-dateutil
Or:
easy_install gspread
easy_install python-dateutil
Thanks to burnash for providing [gspread] (https://github.com/burnash/gspread).
Before running the script, the spreadsheet should be created. OAuth2 currently is not supported by [gspread] (https://github.com/burnash/gspread), so the scrpt doesn't support it either.
First row of the worksheet should have headers - currently hgSpreadsheetReporter doesn't support creating it.
The required headers are:
- Name
- Date
- Total
The header names can be changed in config.ini
You should fill up config.ini as well. The example can be taken from config_example.ini
After filling up config.ini just run the script.