Home

Welcome

Timetracker is a Mercurial extension which tracks the time spent on a project.

The following is an usage example of this extension:

edulix@edulix-laptop ~/proyectos $ mkdir hgtest
edulix@edulix-laptop ~/proyectos $ cd hgtest/
edulix@edulix-laptop ~/proyectos/hgtest $ hg init
edulix@edulix-laptop ~/proyectos/hgtest $ touch hello
edulix@edulix-laptop ~/proyectos/hgtest $ hg add hello
adding hello
edulix@edulix-laptop ~/proyectos/hgtest $ hg commit -m "Initial commit"
hello
committed changeset 0:5fec86337da0
edulix@edulix-laptop ~/proyectos/hgtest $ hg log
changeset:   0:5fec86337da0
tag:         tip
user:        Eduardo Robles Elvira <edulix@wadobo.com>
date:        Sun Nov 28 01:20:39 2010 +0100
files:       hello
description:
Initial commit


edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --help
hg timetracker [options]

Tracks the time spent on a project

options:

 -s --start              start/continue counting time spent
 -p --stop               stop/pause counting time spent
 -r --reset              continue counting time spent
 -e --set                set time spent in minutes
 -c --current            time spent currently in next commit
 -u --summary            show summary of total time spent

global options:
 -R --repository REPO    repository root directory or name of overlay
bundle file
   --cwd DIR            change working directory
 -y --noninteractive     do not prompt, assume 'yes' for any required answers
 -q --quiet              suppress output
 -v --verbose            enable additional output
   --config CONFIG [+]  set/override config option (use 'section.name=value')
   --debug              enable debugging output
   --debugger           start debugger
   --encoding ENCODE    set the charset encoding (default: ascii)
   --encodingmode MODE  set the charset encoding mode (default: strict)
   --traceback          always print a traceback on exception
   --time               time how long the command takes
   --profile            print command execution profile
   --version            output version information and exit
 -h --help               display help and exit

[+] marked option can be specified multiple times
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --start
edulix@edulix-laptop ~/proyectos/hgtest $ echo "foo" > hello
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 16 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg ci -m "Adding foo"
hello
committed changeset 1:de9686ac3c95
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 0 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --summary
total time spent by authors
 Eduardo Robles Elvira <edulix@wadobo.com>        31 seconds

total time spent in this project                   31 seconds
time spent in next commit                          0 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --start
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --summary
total time spent by authors
 Eduardo Robles Elvira <edulix@wadobo.com>        31 seconds

total time spent in this project                   32 seconds
time spent in next commit                          1 second
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --summary
total time spent by authors
 Eduardo Robles Elvira <edulix@wadobo.com>        31 seconds

total time spent in this project                   34 seconds
time spent in next commit                          3 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --stop
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 7 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 7 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --start
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 9 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 10 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --stop
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --reset
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 0 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --set 6
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 6 minutes
edulix@edulix-laptop ~/proyectos/hgtest $ echo "bar" >> hello
edulix@edulix-laptop ~/proyectos/hgtest $ hg ci -m "adding bar"
hello
committed changeset 2:1928af37fa13
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --current
time spent in next commit: 6 minutes
edulix@edulix-laptop ~/proyectos/hgtest $ hg timetracker --summary
total time spent by authors
 Eduardo Robles Elvira <edulix@wadobo.com>        6 minutes 31 seconds

total time spent in this project                   6 minutes 31 seconds
time spent in next commit                          0 seconds
edulix@edulix-laptop ~/proyectos/hgtest $ hg log --debug
changeset:   2:1928af37fa13c7246b109b588cd64948b8afe4a5
tag:         tip
parent:      1:de9686ac3c955f0fe1ae6b68623a03f2e5c2e2fb
parent:      -1:0000000000000000000000000000000000000000
manifest:    2:4c53c245d0c7321055d8bb0a226ea48e12c0d6c7
user:        Eduardo Robles Elvira <edulix@wadobo.com>
date:        Sun Nov 28 01:23:23 2010 +0100
files:       hello
extra:       branch=default
extra:       time-spent=360
description:
adding bar


changeset:   1:de9686ac3c955f0fe1ae6b68623a03f2e5c2e2fb
parent:      0:5fec86337da0f5c2e61c76a176fc426423c2e6d1
parent:      -1:0000000000000000000000000000000000000000
manifest:    1:e8915a3058054638ec6b5f1ecfba9aac08ee18ad
user:        Eduardo Robles Elvira <edulix@wadobo.com>
date:        Sun Nov 28 01:22:03 2010 +0100
files:       hello
extra:       branch=default
extra:       time-spent=31
description:
Adding foo


changeset:   0:5fec86337da0f5c2e61c76a176fc426423c2e6d1
parent:      -1:0000000000000000000000000000000000000000
parent:      -1:0000000000000000000000000000000000000000
manifest:    0:eff6ce3014f3357df0a0875c0c884dd3c30741a6
user:        Eduardo Robles Elvira <edulix@wadobo.com>
date:        Sun Nov 28 01:20:39 2010 +0100
files+:      hello
extra:       branch=default
description:
Initial commit


edulix@edulix-laptop ~/proyectos/hgtest $

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.