TeamControl

Simple script to be used as the --to-cmd/--cc-cmd parameter on git's send-email command
Download

TeamControl Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Caio Romao
  • Publisher web site:
  • http://github.com/caio/

TeamControl Tags


TeamControl Description

Simple script to be used as the --to-cmd/--cc-cmd parameter on git's send-email command TeamControl is a git send-email --to-cmd/--cc-cmd tool for repositories with multiple teams or/and constantly changing teams without a mailing-list.InstallUse your favorite tool to download from the Cheeseshop and install:pip install teamcontrolOr:easy_install teamcontrolIf you’d rather download and install from the sources, simply run:python setup.py installSetupA project using ‘TeamControl’ must have a configuration file easily accessible for every developer (either versioned along the sources or publicly available somewhere).Configuration FileA configuration file is a basic ini-like file with sections describing teams and a set of rules which might trigger the inclusion of it’s members on a code review request. Example:batman = bruce@wainecorp.comironman = tony@starkindustries.comsuperman = jkclark@dailyplanet.comthor = thealmighty@valhalla.asgard.comwonderwoman = diana@themyscira.netavcomics = ^comics/vengersdc = ^publisher/dcjlcomics = ^comics/(the)?\justiceleaguemarvel = ^published/marvelmembers = batman, superman, wonderwomanrules = dc, jlcomicsmembers = thor, ironmanrules = avcomicsThere are two special sections in this file: and : they define aliases for named used for members = and rules = options to ease organization.Every other defined section is regarded as a team, as long as they define the members = and rules = options (they can be empty, but must exist).So, what is a “rule”? A Rule is a valid Python regular expression which will be matched against the files being modified by a given patch (generated by git-format-patch). If any rule matches with one of the modified files the team this rule belongs to will be included in the review request.Per-user SetupNow that we have a configuration file publicly accessible for every developer each must setup her git configuration to call the application when asking for review:# tip: you can set cccmd instead of tocmd if you prefergit config sendemail.tocmd /usr/bin/teamcontrolAnd adjust properties required by “TeamControl”:git config teamcontrol.config /path/to/teamcontrol/config/filegit config teamcontrol.team justiceleague Requirements: · Python


TeamControl Related Software