aboutsummaryrefslogtreecommitdiffstats
path: root/BitKeeper
diff options
context:
space:
mode:
Diffstat (limited to 'BitKeeper')
-rw-r--r--BitKeeper/etc/ciabot.projects0
-rw-r--r--BitKeeper/etc/config99
-rw-r--r--BitKeeper/etc/gone68
-rw-r--r--BitKeeper/etc/ignore10
-rw-r--r--BitKeeper/etc/logging_ok130
-rw-r--r--BitKeeper/triggers/ciabot_bk.py264
-rw-r--r--BitKeeper/triggers/post-incoming65
-rw-r--r--BitKeeper/triggers/post-outgoing.cia0
8 files changed, 0 insertions, 636 deletions
diff --git a/BitKeeper/etc/ciabot.projects b/BitKeeper/etc/ciabot.projects
deleted file mode 100644
index e69de29bb2..0000000000
--- a/BitKeeper/etc/ciabot.projects
+++ /dev/null
diff --git a/BitKeeper/etc/config b/BitKeeper/etc/config
deleted file mode 100644
index 4425271eb5..0000000000
--- a/BitKeeper/etc/config
+++ /dev/null
@@ -1,99 +0,0 @@
-# This is the BitKeeper configuration for this package.
-#
-# Please take a minute to fill it out carefully, it needs to be accurate.
-#
-# NOTICE: you really do want to fill this out, if something goes wrong
-# with your repository, or if someone changes the logging policy, we
-# send mail to the contact listed here for confirmation.
-#
-# BitKeeper can maintain a log of your change comments (not your source,
-# just the comments) on a centralized server. This is useful as your
-# project grows, it gives people a place to go see what is happening on
-# a per project basis. This is especially useful for distributed developers.
-#
-
-#
-# Name of the project, such as "BitKeeper" or "The GNU C compiler".
-#
-description: OpenEmbedded Metadata Repository
-#
-# What (RedHat package) category this project fits into, if any.
-#
-category:
-#
-# Open Logging server. This site is where users go to see the
-# ChangeSet comments for all instances of this repository. This must
-# be logging@openlogging.org for usage under the terms of the BKL,
-# "bk help bkl" will show you the default licensing terms. If this
-# repository is commercial it can be an internal email address or "none"
-# to disable logging.
-#
-logging: logging@openlogging.org
-# You do not have a license for BitKeeper and the logging field in the
-# BitKeeper/etc/config file is not set to "logging@openlogging.org".
-# You either need a commercial license (to run without open logging),
-# or you need to convert your package to single user, or you need to
-# configure your package to use openlogging. Until you have done one of
-# those, you may not create any changesets.
-#
-# You can get a temporary license by sending a mail request
-# to sales@bitmover.com.
-#
-# BitMover can be reached in the United States at 415-401-8808
-# during business hours (PST) or via email at sales@bitmover.com.
-# Thanks!
-license:
-#
-# If this field is set, all checkins will appear to be made by this user,
-# in effect making this a single user package. Single user packages are
-# free from the logging constraint up to a maximum of 1000 files. In order
-# for the package to really be free, both the single_user and the single_host
-# field need to be set.
-#
-single_user:
-#
-# If this field is set, all checkins will appear to be made on this host.
-#
-single_host:
-#
-# Default compression algorithm for stored s.files is gzip.
-# If you want no compression, set this to "none".
-#
-compression: gzip
-#
-# Default is to autofix problems found by check.
-# If you want to manually fix them, set this to "no".
-#
-autofix: yes
-#
-# Contact person for this project. This is whoever is the person that
-# should be contacted with update information or contacted if BitKeeper
-# discovers a problem which requires local intervention. Please make the
-# contact information accurate so we can support you.
-#
-contact: Chris Larson
-#
-# It is very important that this email address is filled out and accurate.
-# If someone converts your repository to open logging (which you may not
-# want), we will contact this email address for confirmation that you really
-# did want open logging. If the email address is inaccurate and we get no
-# response from anyone else at your location after 90 days, then open logging
-# will be implicitly approved.
-#
-email: kergoth@handhelds.org
-#
-# Add your street address if you like, it is optional.
-#
-street:
-city:
-state:
-postal:
-country:
-phone:
-cell:
-pager:
-#
-# Business Hours when we can contact you if you left a phone number.
-#
-hours:
-checkout: get
diff --git a/BitKeeper/etc/gone b/BitKeeper/etc/gone
deleted file mode 100644
index 205f3fd78a..0000000000
--- a/BitKeeper/etc/gone
+++ /dev/null
@@ -1,68 +0,0 @@
-*.*
-BitKeeper/deleted/.del-opie-oxygen_1.0.0.bb~f61dd96d222843fe
-collie/sharp_mmcsd_m.o
-corgi/sharp_mmcsd_m.o
-defconfig-shepherd
-enlightenment-sa_2.4.19-rmk6-pxa1-hh37.1.bb
-enlightenment.conf
-h3600-mine.conf
-husky/sharp_mmcsd_m.o
-kergoth@direwolf.ppp.ti.com|tmp/base/apache-2.0.47-r0/httpd-2.0.47/.patches/configure.patch|20031017000313|22103|55fb394e85ed9a27
-kergoth@direwolf.ppp.ti.com|tmp/base/avr-libc-1.0-r0/avr-libc-1.0/.patches/configure.patch|20031017000314|20947|86c76bf82d67da92
-kergoth@direwolf.ppp.ti.com|tmp/base/base-passwd-3.5.4-r0/base-passwd-3.5.4/.patches/configure.patch|20031017000313|25095|6eff6e911a09618d
-kergoth@direwolf.ppp.ti.com|tmp/base/binutils-2.14.90.0.6-r0/binutils-2.14.90.0.6/.patches/configure.patch|20031017000313|27445|9df4cc10d077d9d2
-kergoth@direwolf.ppp.ti.com|tmp/base/bison-1.875-r0/bison-1.875/.patches/configure.patch|20031017000313|28770|3476df18d00643df
-kergoth@direwolf.ppp.ti.com|tmp/base/bvi-1.3.1-r0/bvi-1.3.1/.patches/configure.patch|20031017000313|29990|52d5b79930245009
-kergoth@direwolf.ppp.ti.com|tmp/base/console-tools-0.3.2-r0/console-tools-0.3.2/.patches/configure.patch|20031017000313|32727|573e3f4b341b4ab7
-kergoth@direwolf.ppp.ti.com|tmp/base/coreutils-5.0-r0/coreutils-5.0/.patches/configure.patch|20031017000313|33929|c633fb1fc2509164
-kergoth@direwolf.ppp.ti.com|tmp/base/corkscrew-2.0-r0/corkscrew-2.0/.patches/configure.patch|20031017000313|35115|1564ebab8eccece0
-kergoth@direwolf.ppp.ti.com|tmp/base/cscope-15.4-r0/cscope-15.4/.patches/configure.patch|20031017000313|36304|d1e0bb07777d6f7b
-kergoth@direwolf.ppp.ti.com|tmp/base/fbi-1.22-r0/fbi-1.22/.patches/configure.patch|20031017000313|37520|4bd8ce54b18095ae
-kergoth@direwolf.ppp.ti.com|tmp/base/findutils-4.1.20-r0/findutils-4.1.20/.patches/configure.patch|20031017000313|38715|c377cf95481a830a
-kergoth@direwolf.ppp.ti.com|tmp/base/gawk-3.0.4-r0/gawk-3.0.4/.patches/configure.patch|20031017000313|39951|45d8f6a6b5302d64
-kergoth@direwolf.ppp.ti.com|tmp/base/gpm-1.20.1-r0/gpm-1.20.1/.patches/configure.patch|20031017000313|41161|86de3521b668d621
-kergoth@direwolf.ppp.ti.com|tmp/base/gzip-1.3.5-r0/gzip-1.3.5/.patches/configure.patch|20031017000313|42363|f614caa16da2bcbb
-kergoth@direwolf.ppp.ti.com|tmp/base/ipkg-0.99.95-r0/ipkg/.patches/configure.patch|20031017000313|43541|7654a4298f65de85
-kergoth@direwolf.ppp.ti.com|tmp/base/irda-utils-0.9.15-r0/irda-utils-0.9.15/.patches/configure.patch|20031017000313|44717|f0b15777fd4a954b
-kergoth@direwolf.ppp.ti.com|tmp/base/less-381-r0/less-381/.patches/configure.patch|20031017000313|45923|d232dca69e525e4d
-kergoth@direwolf.ppp.ti.com|tmp/base/libid3tag-0.15.0b-r0/libid3tag-0.15.0b/.patches/configure.patch|20031017000313|47185|41fc2d72a62cabf9
-kergoth@direwolf.ppp.ti.com|tmp/base/liblockfile-1.05-r0/liblockfile-1.05/.patches/configure.patch|20031017000313|48381|430d9b7359d8ab6b
-kergoth@direwolf.ppp.ti.com|tmp/base/libmad-0.15.0b-r0/libmad-0.15.0b/.patches/configure.patch|20031017000313|49586|984001c5f2b57681
-kergoth@direwolf.ppp.ti.com|tmp/base/libnet-1.0.2a-r0/Libnet-1.0.2a/.patches/configure.patch|20031017000313|50854|c89408a6f00fb25b
-kergoth@direwolf.ppp.ti.com|tmp/base/libnet-1.1.0-r0/Libnet-latest/.patches/configure.patch|20031017000313|54306|3feb4601a1123eea
-kergoth@direwolf.ppp.ti.com|tmp/base/libogg-1.0.0-r0/libogg-1.0.0/.patches/configure.patch|20031017000313|55952|f648dbc8ddb3e6ce
-kergoth@direwolf.ppp.ti.com|tmp/base/libpcap-0.7.2-r0/libpcap-0.7.2/.patches/configure.patch|20031017000313|57191|23994653174049d0
-kergoth@direwolf.ppp.ti.com|tmp/base/links-2.1pre12-r0/links-2.1pre12/.patches/configure.patch|20031017000313|58632|2e4454542c2a571
-kergoth@direwolf.ppp.ti.com|tmp/base/mailutils-0.3.1-r0/mailutils-0.3.1/.patches/configure.patch|20031017000313|64970|bdce432bdccd1c79
-kergoth@direwolf.ppp.ti.com|tmp/base/make-3.80-r0/make-3.80/s.conftest|20030930212318|63110|da37c84ab4cbd31
-kergoth@direwolf.ppp.ti.com|tmp/base/make-3.80-r0/make-3.80/s.conftest|20031223192004|25012|264605837342a3ef
-kergoth@direwolf.ppp.ti.com|tmp/base/modutils-2.4.25-r0/modutils-2.4.25/.patches/configure.patch|20031017000313|00714|f378c3a7f0788548
-kergoth@direwolf.ppp.ti.com|tmp/base/mp3blaster-3.1.3-r0/mp3blaster-3.1.3/.patches/configure.patch|20031017000313|01960|693a1a85687857b9
-kergoth@direwolf.ppp.ti.com|tmp/base/mutt-1.5.4i-r0/mutt-1.5.4/.patches/configure.patch|20031017000313|03256|760ff87da881b5c
-kergoth@direwolf.ppp.ti.com|tmp/base/nano-1.2.1-r0/nano-1.2.1/.patches/configure.patch|20031017000313|04604|335ba3dab38b5eb9
-kergoth@direwolf.ppp.ti.com|tmp/base/ncftp-3.1.6-r0/ncftp-3.1.6/.patches/configure.patch|20031017000313|06135|25a353538d7d3dbe
-kergoth@direwolf.ppp.ti.com|tmp/base/ncurses-5.3.20030906-r0/ncurses-5.3/.patches/configure.patch|20031017000313|07427|f91a3569809476c
-kergoth@direwolf.ppp.ti.com|tmp/base/ntp-4.1.2-r0/ntp-4.1.2/.patches/configure.patch|20031017000313|08763|815326e557b4a0b6
-kergoth@direwolf.ppp.ti.com|tmp/base/openobex-apps-1.0.0-r0/openobex-apps-1.0.0/.patches/configure.patch|20031017000313|25215|e210017ecae701df
-kergoth@direwolf.ppp.ti.com|tmp/base/openssh-3.7.1p1-r0/openssh-3.7.1p1/.patches/configure.patch|20031017000314|06365|f6d1a7fb173a55ba
-kergoth@direwolf.ppp.ti.com|tmp/base/openssh-3.7.1p1-r0/openssh-3.7.1p1/configure.patch|20031017000314|14876|f484270640f7202a
-kergoth@direwolf.ppp.ti.com|tmp/base/openssh-3.7.1p2-r0/openssh-3.7.1p2/.patches/configure.patch|20031017000313|26870|e13fab89b5562bc8
-kergoth@direwolf.ppp.ti.com|tmp/base/openssh-3.7.1p2-r0/openssh-3.7.1p2/configure.patch|20031017000313|33924|ebc16d521120c3f8
-kergoth@direwolf.ppp.ti.com|tmp/base/psmisc-20.2-r0/psmisc-20.2/.patches/configure.patch|20031017000313|23867|3314da401436c0b2
-kergoth@direwolf.ppp.ti.com|tmp/base/readline-4.3-r0/readline-4.3/.patches/configure.patch|20031017000313|22543|1c9e9c075fab007b
-kergoth@direwolf.ppp.ti.com|tmp/base/regex-markup-0.9.0-r0/regex-markup-0.9.0/.patches/configure.patch|20031017000313|21214|90f9a859eb52cac9
-kergoth@direwolf.ppp.ti.com|tmp/base/screen-4.0.1-r0/screen-4.0.1/.patches/configure.patch|20031017000313|18676|28ce53b38ab58ce7
-kergoth@direwolf.ppp.ti.com|tmp/base/ssmtp-2.60.4-r0/ssmtp-2.60/.patches/configure.patch|20031017000313|15313|7fada7d495416713
-kergoth@direwolf.ppp.ti.com|tmp/base/strace-4.4.98-r0/strace-4.4.98/.patches/configure.patch|20031017000313|14022|3cdea4ec46cdfb46
-kergoth@direwolf.ppp.ti.com|tmp/base/tmdns-20030116-r0/tmdns/.patches/configure.patch|20031017000313|12722|4ea358f61d029898
-kergoth@direwolf.ppp.ti.com|tmp/base/tremor-20030325-r0/Tremor/.patches/configure.patch|20031017000313|11433|5d97ad5efbd728ad
-kergoth@direwolf.ppp.ti.com|tmp/base/tslib-1.0-r0/tslib/.patches/configure.patch|20031017000313|10146|424e0abc38251984
-kergoth@direwolf|tmp/base/make-3.80-r0/make-3.80/s.conftest|20031121052259|39582|c6bf26cbc42ce43
-linux-c860-20040124.patch
-mickey@r2d2.tm.informatik.uni-frankfurt.de|linux/openzaurus-2.6.5-jl3/defconfig-husky|20040615225532|40097|e1e14fb2f72d1268
-mickey@r2d2.tm.informatik.uni-frankfurt.de|linux/openzaurus-2.6.7-jl2/collie-config-2.6.7-jl2|20040717160236|60573|c2ae49b6709d0a10
-mickey@r2d2.tm.informatik.uni-frankfurt.de|linux/openzaurus-2.6.7-jl2/poodle-config-2.6.7-jl2|20040717160238|56080|ad98a80f6958e9a5
-poodle/sharp_mmcsd_m.o
-sharp-camera-2.4.18.tar.gz
-shepherd/sharp_mmcsd_m.o
-tosa/sharp_mmcsd_m.o
diff --git a/BitKeeper/etc/ignore b/BitKeeper/etc/ignore
deleted file mode 100644
index 86dbb5e508..0000000000
--- a/BitKeeper/etc/ignore
+++ /dev/null
@@ -1,10 +0,0 @@
-BitKeeper/*/*
-PENDING/*
-conf/local.conf
-conf/auto.conf
-tmp
-meta/treke-image.oe
-patches
-.pc
-packages/find_no_ver.sh
-packages/linux/openslug-kernel-2.6.9/fp_lenert_float64.patch
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok
deleted file mode 100644
index c908b2a287..0000000000
--- a/BitKeeper/etc/logging_ok
+++ /dev/null
@@ -1,130 +0,0 @@
-ByronT@jbt-portable.
-CodeWhacker@rant-central.com
-CoreDump@handhelds.org
-CoreDump@mhcln01.hentges.local
-RP@darkstar.example.net
-RP@tim.rpsys.net
-XorA@cimmeria.(none)
-a0868066@lta0868066.ent.ti.com
-alwin@zeckescompany.nl
-anon@tim.rpsys.net
-br1@null.(none)
-buildroot@mithis.com
-byrontodd@christy-todds-computer.local
-cbrake@gus.accelent.com
-cbrake@notebook.neo.rr.com
-chris@chrislaptop.(none)
-chriz@i74-copy.(none)
-cwiiis@chris.(none)
-cwiiis@chrislaptop.(none)
-cwiiis@cwiiisdesktop.(none)
-dereky@builder.(none)
-dirk@wks-dirk.opfer.lan
-dp@cimmeria.(none)
-dyoung@builder.(none)
-emte@t.(none)
-emte@t.labotomy.net
-erich@erichl.mine.nu
-erich@erichv.mine.nu
-erich@mythtv.erich.mine.nu
-fontenot@chilli.conversagent.com
-fontenot@silver.activebuddy.com
-g2@giantshoulder.com
-gbritton@doomcom.org
-ggilbert@dreamland.(none)
-ggilbert@fastframe.brooks.edu
-ggilbert@olddog.(none)
-ggilbert@olddog.home.treke.net
-ggilbert@olddog.treke.net
-ggilbert@sql.brooks.edu
-ggilbert@tinman.treke.net
-ggilbert@treke.ath.cx
-hrw@home.hrw.one.pl
-hrw@marcinj.local
-ich@debian.(none)
-jacques@home.(none)
-jbowler@marsco.kalmiopsis
-jcrouse@forsteri.amd.com
-jgrant@desknote.thegrantclan.org
-joshin@styx.techsurgeons.com
-kebert@geralt.doma
-kergoth@beast.local
-kergoth@direwolf.(none)
-kergoth@direwolf.itg.ti.com
-kergoth@direwolf.ppp.ti.com
-kergoth@handhelds.org
-kergoth@hyperion.(none)
-kergoth@hyperion.kergoth.com
-kergoth@linux.local
-kergoth@nexus.(none)
-kergoth@odin.(none)
-kergoth@odin.sc.ti.com
-kergoth@zelda.tuxnami.org
-koen@bitbake.utwente.nl
-koen@dominion.dominion.void
-koen@lieve.(none)
-lpotter@polarbear.trolltech.com.au
-lpotter@spiritship.(none)
-mallum@shuttle.(none)
-marcinj@marcinj.local
-maurice@frodo.mauricekoster.com
-mhentges@mhcln01.hentges.local
-mickey@allanon.vanille.de
-mickey@gandalf.tm.informatik.uni-frankfurt.de
-mickey@merlin.vanille.de
-mickey@r2d2.tm.informatik.uni-frankfurt.de
-mickeyl@allanon.vanille.de
-mickeyl@gandalf.tm.informatik.uni-frankfurt.de
-mickeyl@merlin.tm.informatik.uni-frankfurt.de
-mickeyl@r2d2.tm.informatik.uni-frankfurt.de
-mithro@mithis.com
-noodles@pot.orange
-nslu2-linux.adm@bkbits.net
-nslu2-linux.adm@hostme.bitkeeper.com
-oe@sugarcube.dyndns.org
-openembedded.adm@bkbits.net
-openembedded@t.(none)
-p.osiczko@tetrapyloctomy.org
-pablo@kosmos.(none)
-patrick@gollum.(none)
-pb@dixie.nexus.co.uk
-pb@mebius.(none)
-pb@mebius.reciva.com
-pb@mill.internal.reciva.com
-pb@mill.nexus.co.uk
-pb@stealth.(none)
-pb@stealth.nexus.co.uk
-pb@workhouse.(none)
-pb@workhouse.nexus.co.uk
-pb_@gandalf.tm.informatik.uni-frankfurt.de
-perlguru@nslu2-linux.org
-peteru@black.lan
-phillim@linux.local
-ral@alwin.at.home
-red@quarm.(none)
-reenoo@sugarcube.dyndns.org
-rjt@bob.cambridgebroadband.com
-rjt@flotta.cambridgebroadband.com
-root@darkstar.example.net
-root@tim.rpsys.net
-roy@rant-central.com
-rwhitby@home.(none)
-rwhitby@nudi.(none)
-schurig@mnz66.mn-logistik.de
-schurig@mnz66.mn-solutions.de
-schurig@schurig.homelinux.net
-stephane@gauss.mathstat.uottawa.ca
-szczepan@home.hrw.one.pl
-szczepan@hrw.local
-tgall@www.rochcivictheatre.org
-themel@sophokles.home.themel.com
-tigrux@172.16.1.34
-timh@host10.kano.org.uk
-timh@smallshiny.kano.org.uk
-unslung@builds.(none)
-wind@spiritship.(none)
-xf005570@cn014xf005570l1.(none)
-xf005570@cn014xf005570w1.
-xora@cimmeria.(none)
-xora@cimmeria.hyboria
-zecke@handhelds.org
diff --git a/BitKeeper/triggers/ciabot_bk.py b/BitKeeper/triggers/ciabot_bk.py
deleted file mode 100644
index d75f93257c..0000000000
--- a/BitKeeper/triggers/ciabot_bk.py
+++ /dev/null
@@ -1,264 +0,0 @@
-#!/usr/bin/env python
-# ex:ts=4:sw=4:sts=4:et
-# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
-#
-# CIA bot client script for Bitkeeper repositories, written in python.
-# This generates commit messages using CIA's XML commit format, and can
-# deliver them using either XML-RPC or email.
-#
-# -- Micah Dowty <micah@navi.cx>
-#
-# This script is cleaner, more featureful, and faster than the shell
-# script version, but won't work on systems without Python or that don't
-# allow outgoing HTTP connections.
-#
-# To use the CIA bot in your Bitkeeper repository...
-#
-# 1. Customize the parameters below
-#
-# 2. This script should be called from your repository's post-commit
-# hook with the repository and revision as arguments. For example,
-# you could copy this script into your repository's "hooks" directory
-# and add something like the following to the "post-commit" script,
-# also in the repository's "hooks" directory:
-#
-# REPOS="$1"
-# REV="$2"
-# $REPOS/hooks/ciabot_bk.py "$REPOS" "$REV" &
-#
-# Or, if you have multiple project hosted, you can add each
-# project's name to the commandline in that project's post-commit
-# hook:
-#
-# $REPOS/hooks/ciabot_bk.py "$REPOS" "$REV" "My Project" &
-#
-############# There are some parameters for this script that you can customize:
-
-class config:
- # Replace this with your project's name, or always provide a
- # project name on the commandline.
- project = "openembedded"
-
- # If your repository is accessable over the web, put its base URL here
- # and 'uri' attributes will be given to all <file> elements. This means
- # that in CIA's online message viewer, each file in the tree will link
- # directly to the file in your repository
- repositoryURI = None
-
- # This can be the http:// URI of the CIA server to deliver commits over
- # XML-RPC, or it can be an email address to deliver using SMTP. The
- # default here should work for most people. If you need to use e-mail
- # instead, you can replace this with "cia@cia.navi.cx"
- server = "http://cia.navi.cx"
-
- # The SMTP server to use, only used if the CIA server above is an
- # email address
- smtpServer = "localhost"
-
- # The 'from' address to use. If you're delivering commits via email, set
- # this to the address you would normally send email from on this host.
- fromAddress = "cia-user@localhost"
-
- # When nonzero, print the message to stdout instead of delivering it to CIA
- debug = 0
-
-
-############# Normally the rest of this won't need modification
-
-import sys, os, re, urllib, xmlrpclib
-
-class UrllibTransport(xmlrpclib.Transport):
- '''Handles an HTTP transaction to an XML-RPC server via urllib
- (urllib includes proxy-server support)
- jjk 07/02/99'''
-
- def __init__(self):
- self.verbose = 0
-
- def request(self, host, handler, request_body, verbose=0):
- '''issue XML-RPC request
- jjk 07/02/99'''
- import urllib
- urlopener = urllib.FancyURLopener()
- urlopener.addheaders = [('User-agent', self.user_agent)]
- # probably should use appropriate 'join' methods instead of 'http://'+host+handler
- f = urlopener.open('http://'+host+handler, request_body)
- return(self.parse_response(f))
-
-class File:
- """A file in a Bitkeeper repository. According to our current
- configuration, this may have a module, branch, and URI in addition
- to a path."""
-
- def __init__(self, fullPath):
- self.fullPath = fullPath
- self.path = fullPath
-
- def getURI(self, repo):
- """Get the URI of this file, given the repository's URI. This
- encodes the full path and joins it to the given URI."""
- quotedPath = urllib.quote(self.fullPath)
- if quotedPath[0] == '/':
- quotedPath = quotedPath[1:]
- if repo[-1] != '/':
- repo = repo + '/'
- return repo + quotedPath
-
- def makeTag(self, config):
- """Return an XML tag for this file, using the given config"""
- attrs = {}
-
- if config.repositoryURI is not None:
- attrs['uri'] = self.getURI(config.repositoryURI)
-
- attrString = ''.join([' %s="%s"' % (key, escapeToXml(value,1))
- for key, value in attrs.iteritems()])
- return "<file%s>%s</file>" % (attrString, escapeToXml(self.path))
-
-
-class CIAClient:
- """Base CIA client class"""
- name = 'Python client for CIA'
- version = '1.0'
-
- def __init__(self, repository, revision, config):
- self.repository = repository
- self.revision = revision
- self.config = config
-
- def deliver(self, message):
- if config.debug:
- print message
- else:
- server = self.config.server
- if server.startswith('http:') or server.startswith('https:'):
- # Deliver over XML-RPC
- proxy = os.environ.get('http_proxy')
- if proxy:
- os.environ['HTTP_PROXY'] = proxy
- s = xmlrpclib.ServerProxy(server, UrllibTransport())
- else:
- s = xmlrpclib.ServerProxy(server)
- s.hub.deliver(message)
- else:
- # Deliver over email
- import smtplib
- smtp = smtplib.SMTP(self.config.smtpServer)
- smtp.sendmail(self.config.fromAddress, server,
- "From: %s\r\nTo: %s\r\n"
- "Subject: DeliverXML\r\n\r\n%s" %
- (self.config.fromAddress, server, message))
-
- def main(self):
- self.collectData()
- import socket
- try:
- self.deliver("<message>" +
- self.makeGeneratorTag() +
- self.makeSourceTag() +
- self.makeBodyTag() +
- "</message>")
- return 0
- except socket.error, e:
- print "ERROR: socket: %s" % e
- return 1
-
- def makeAttrTags(self, *names):
- """Given zero or more attribute names, generate XML elements for
- those attributes only if they exist and are non-None.
- """
- s = ''
- for name in names:
- if hasattr(self, name):
- v = getattr(self, name)
- if v is not None:
- s += "<%s>%s</%s>" % (name, escapeToXml(str(v)), name)
- return s
-
- def makeGeneratorTag(self):
- return "<generator>%s</generator>" % self.makeAttrTags(
- 'name',
- 'version',
- )
-
- def makeSourceTag(self):
- self.project = self.config.project
- return "<source>%s</source>" % self.makeAttrTags(
- 'project',
- 'module',
- 'branch',
- )
-
- def makeBodyTag(self):
- return "<body><commit>%s%s</commit></body>" % (
- self.makeAttrTags(
- 'revision',
- 'author',
- 'log',
- 'diffLines',
- ),
- self.makeFileTags(),
- )
-
- def makeFileTags(self):
- """Return XML tags for our file list"""
- return "<files>%s</files>" % ''.join([file.makeTag(self.config)
- for file in self.files])
-
- def collectData(self):
- raise NotImplementedError("collectData method not implemented in the base CIA client class.")
-
-def escapeToXml(text, isAttrib=0):
- text = text.replace("&", "&amp;")
- text = text.replace("<", "&lt;")
- text = text.replace(">", "&gt;")
- if isAttrib == 1:
- text = text.replace("'", "&apos;")
- text = text.replace("\"", "&quot;")
- return text
-
-class BKClient(CIAClient):
- """A CIA client for Bitkeeper repositories."""
- name = 'Python Bitkeeper client for CIA'
- version = '1.0'
-
- def __init__(self, repository, revision, config):
- CIAClient.__init__(self, repository, revision, config)
- os.chdir(self.repository)
-
- def bkchanges(self, command):
- """Run the given bkchanges command on our current repository and
- revision, returning all output"""
- return os.popen('bk changes %s -r"%s"' % \
- (command, self.revision)).read()
-
- def collectData(self):
- self.author = self.bkchanges('-d\':P:\'').strip()
- self.log = self.bkchanges('-d\'$if(:C:){$each(:C:){:C: \\\\n}}\'').strip()
- self.diffLines = len(os.popen('bk export -tpatch -r"%s"|grep -v \'^#\'' % self.revision).read().split('\n'))
- self.files = self.collectFiles()
- self.module = os.path.basename(os.environ.get('BKD_ROOT') or '')
- self.branch = self.bkchanges('-d\':TAG:\'')
-
- def collectFiles(self):
- # Extract all the files from the output of 'bkchanges changed'
- lines = []
- for l in self.bkchanges('-n -v -d\'$unless(:GFILE:=ChangeSet){:GFILE:}\'').strip().split('\n'):
- if not l in lines:
- lines.append(l)
- return [ File(line) for line in lines ]
-
-
-if __name__ == "__main__":
- # Print a usage message when not enough parameters are provided.
- if len(sys.argv) < 3:
- sys.stderr.write("USAGE: %s REPOS-PATH REVISION [PROJECTNAME]\n" %
- sys.argv[0])
- sys.exit(1)
-
- # If a project name was provided, override the default project name.
- if len(sys.argv) > 3:
- config.project = sys.argv[3]
-
- # Go do the real work.
- BKClient(sys.argv[1], sys.argv[2], config).main()
diff --git a/BitKeeper/triggers/post-incoming b/BitKeeper/triggers/post-incoming
deleted file mode 100644
index abbd52e81a..0000000000
--- a/BitKeeper/triggers/post-incoming
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-
-exit 0
-
-if [ X"$BK_STATUS" = XDRYRUN -o X"$BK_STATUS" = XNOTHING ]
-then exit 0
-fi
-
-if [ "$BK_SIDE" = server ]
-then U=$BKD_USER
- H=$BKD_HOST
- R=$BKD_ROOT
-else U=$BK_USER
- H=$BK_HOST
- R=$BK_ROOT
-fi
-
-exit 0
-
-(
-# if [ X"$BKD_ROOT" != X ]
-# then printf '%-10s%-20s%-20s\n' VAR CLIENT SERVER
-# printf '%-10s%-20s%-20s\n' === ====== ======
-# printf '%-10s%-20s%-20s\n' USER $BK_USER $BKD_USER
-# printf '%-10s%-20s%-20s\n' HOST $BK_HOST $BKD_HOST
-# printf '%-10s%-20s%-20s\n' ROOT $BK_ROOT $BKD_ROOT
-# printf '%-10s%-20s%-20s\n' LEVEL $BK_LEVEL $BKD_LEVEL
-# printf '%-10s%-20s%-20s\n' TIME_T $BK_TIME_T $BKD_TIME_T
-# printf '%-10s%-20s%-20s\n' UTC $BK_UTC $BKD_UTC
-# printf '%-10s%-20s%-20s\n' VERSION $BK_VERSION $BKD_VERSION
-# echo
-# fi
- echo ${U}@${H} fired the $BK_TRIGGER trigger in $R
- case "$BK_TRIGGER" in
- pre-outgoing) VERB=Sending;;
- post-outgoing) VERB=Sent;;
- pre-incoming) VERB=Receiving;;
- post-incoming) VERB=Received;;
- pre-resolve) VERB=Resolving;;
- pre-commit) VERB=Committing;;
- post-commit) VERB=Committed;;
- pre-apply) VERB=Applying;;
- esac
- if [ X"$BK_PENDING" != X ]
- then (
- echo $VERB the following deltas
- echo
- bk prs - < $BK_PENDING
- ) | sed 's/^/ /'
- fi
- if [ X"$BK_CSETLIST" != X ]
- then (
- echo $VERB the following changesets
- echo
- bk changes -v - < $BK_CSETLIST
- ) | sed 's/^/ /'
- fi
- if [ X"$BK_CSETS" != X ]
- then (
- echo $VERB the following changesets
- echo
- bk changes -v -r$BK_CSETS
- ) | sed 's/^/ /'
- fi
-) | mail -s "${U}@${H}:${R} - $BK_EVENT" openembedded-bklogs@lists.sourceforge.net
diff --git a/BitKeeper/triggers/post-outgoing.cia b/BitKeeper/triggers/post-outgoing.cia
deleted file mode 100644
index e69de29bb2..0000000000
--- a/BitKeeper/triggers/post-outgoing.cia
+++ /dev/null