Skip to content

This small python script takes the history of several mercurial repositories, and forms a simple time report, based on commits date and time

Notifications You must be signed in to change notification settings

archeg/hgSpreadsheetReporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mercurial google spreadsheet reporter

=====================

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).

Using the script:

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.

About

This small python script takes the history of several mercurial repositories, and forms a simple time report, based on commits date and time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages