Source

committer / test-committer-ext.t

Full commit
  $ hg init repo
  $ cd repo
  $ echo [extensions] >> .hg/hgrc
  $ echo hgcommitter = $TESTDIR/hgcommitter.py >> .hg/hgrc

Commits with committers

  $ echo a>a
  $ hg add a
  $ hg commit -m init

  $ echo aa>>a
  $ hg commit -maa -u patchman

  $ echo aaa>>a
  $ HGUSER='the boss' hg commit -maaa

  $ echo aaaa>>a
  $ HGUSER='reviewer' hg commit -maaaa -u developer

Revsets and templates

  $ hg log --template '{rev} author:{author} committer:{committer}\n'
  3 author:developer committer:reviewer
  2 author:the boss committer:
  1 author:patchman committer:test
  0 author:test committer:

  $ hg log --template '{rev} author:{author} committer:{committer}\n' -r 'committer()'
  1 author:patchman committer:test
  3 author:developer committer:reviewer

  $ hg log --template '{rev} author:{author} committer:{committer}\n' -r 'committer(reviewer)'
  3 author:developer committer:reviewer