Initial import of the CVS to GIT conversion scripts.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 3 Apr 2011 00:02:59 +0000 (02:02 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 3 Apr 2011 00:02:59 +0000 (02:02 +0200)
authors.txt [new file with mode: 0644]
cvs2git-inc.sh [new file with mode: 0755]
cvs2git.options [new file with mode: 0644]
cvs2git.sh [new file with mode: 0755]
filter.txt [new file with mode: 0644]
git.wiki [new file with mode: 0644]
sync.sh [new file with mode: 0755]

diff --git a/authors.txt b/authors.txt
new file mode 100644 (file)
index 0000000..f856db4
--- /dev/null
@@ -0,0 +1,217 @@
+cvsadmin=<Cvs.Administrator@cern.ch>
+manuel=<Manuel.Guijarro@cern.ch>
+reguero=<Ignacio.Reguero@cern.ch>
+defert=<Philippe.Defert@cern.ch>
+slopiens=<slopiens@mail.cern.ch>
+aborgia=<borgia@pd.infn.it>
+acava=<andrea.cavallini@elsagdatamat.com>
+adorigo=<alvise.dorigo@pd.infn.it>
+aduarte=<Alexandre.Duarte@cern.ch>
+aduncan=<a.duncan@rl.ac.uk>
+aferraro=<aferraro@cern.ch>
+afernand=<Alvaro.Fernandez.Casani@cern.ch>
+aguarise=<guarise@to.infn.it>
+ajavadza=<Ali.Javadzadeh.Boloori@cern.ch>
+akatsifo=Asterios Katsifodimos <asteriosk@cs.ucy.ac.cy>
+akrenek=Aleš Křenek <ljocha@ics.muni.cz>
+akrueger=<andrei.krueger@cern.ch>
+akuseju=<kush.kuseju@rl.ac.uk>
+amarasch=<alessandro.maraschini@elsagdatamat.com>
+amillar=<p.millar@physics.gla.ac.uk>
+anechaev=<Andrey.Nechaevskiy@cern.ch>
+apatil=<anand.patil@dante.org.uk>
+apeters=<andreas.joachim.peters@cern.ch>
+aphipps=<alistair@epcc.ed.ac.uk>
+aretico=<antonio.retico@cern.ch>
+asaroka=<a.soroko1@physics.ox.ac.uk>
+auzhinsk=<Alexander.Uzhinskiy@cern.ch>
+avellino=<giuseppe.avellino@datamat.it>
+awilson=<a.j.wilson@rl.ac.uk>
+badino=<paolo.badino@cern.ch>
+baud=<Jean-Philippe.Baud@cern.ch>
+bcouturi=<Ben.Couturier@cern.ch>
+caguado=<carlos.cguado.sanchez@cern.ch>
+caltroni=<caltroni@cern.ch>
+campanas=<campans@mail.cern.ch>
+ccherubi=<claudio.cherubino@ct.infn.it>
+cdelcano=<c.del.cano.novales@rl.ac.uk>
+ceccanti=<andrea.ceccanti@cnaf.infn.it>
+charaka=<charaka@epcc.ed.ac.uk>
+cirstoiu=<catalin.cirstoiu@cern.ch>
+cnichols=<cnichols@mail.cern.ch>
+cornwall=<l.a.cornwall@rl.ac.uk>
+corvo=<corvo@mail.cern.ch>
+cpera=<christophe.pera@creatis.insa-lyon.fr>
+daiftimi=<cristina.aiftimiei@pd.infn.it>
+dcollado=David Collados <david.collados@cern.ch>
+delgadop=<delgadop@mail.cern.ch>
+dfeich=<derek.feichtinger@cern.ch>
+dfrodrig=<daniel.rodrigues@cern.ch>
+dhsmith=<David.Smith@cern.ch>
+diana=<diana.bosio@cern.ch>
+digamber=<digamber@mail.cern.ch>
+digirola=<alessandro.di.girolamo@cern.ch>
+digiusto=<cinzia.digiusto@cnaf.infn.it>
+dimeglio=Alberto Di Meglio <alberto.di.meglio@cern.ch>
+dkouril=Daniel Kouřil <kouril@ics.muni.cz>
+dpiparo=<Danilo.Piparo@cern.ch>
+drebatto=<david.rebatto@mi.infn.it>
+dshiyach=Dimitar Shiyachki <Dimitar.Shiyachki@cern.ch>
+dusan=<Dusan.Vudragovic@cern.ch>
+dvirdee=<davy@epcc.ed.ac.uk>
+efrizzie=<eric.frizziero@pd.infn.it>
+elisal=<Elisa.Lanciotti@cern.ch>
+emartel=<enzo.martelli@mi.infn.it>
+emolina=Elisabetta Molinari <elisabetta.molinari@cern.ch>
+eryabink=<eryabink@mail.cern.ch>
+eronchie=Elisabetta Ronchieri <elisabetta.ronchieri@cnaf.infn.it>
+fchollet=<fchollet@mail.cern.ch>
+fede=<fede@cppm.in2p3.fr>
+fisher=<dr.s.m.fisher@gmail.com>
+flavia=<flavia@mail.cern.ch>
+fnaz=<fnaz@mail.cern.ch>
+fpacini=<fabrizio.pacini@datamat.it>
+fprelz=<francesco.prelz@mi.infn.it>
+fscharin=<florian@epcc.ed.ac.uk>
+fschaer=<fschaer@mail.cern.ch>
+gpatania=<patania@to.infn.it>
+glbuild=Master Builder <glbuilder@cern.ch>
+gdebrecz=Gergely Debreczeni <Gergely.Debreczeni@cern.ch>
+giaco=Francesco Giacomini <francesco.giacomini@cnaf.infn.it>
+gianelle=Alessio Gianelle <alessio.gianelle@pd.infn.it>
+gfiorent=<giuseppe.fiorentino@mi.infn.it>
+gamoros=<amoros@ific.uv.es>
+gmerino=<gmerino@mail.cern.ch>
+gombasg=<gabos.gombas@cern.ch>
+goncalo=<goncalo@lip.pt>
+gpatania=<patania@to.infn.it>
+grodid=<grodid@mail.cern.ch>
+groep=<davidg@nikhef.nl>
+grubini=<gianluca.rubini@cnaf.infn.it>
+gstewart=<g.stewart@physics.gla.ac.uk>
+hahkala=<joni.hahkala@cern.ch>
+harakaly=Robert Harakaly <robert.harakaly@cern.ch>
+hemmer=<frederic.hemmer@cern.ch>
+hsagehau=<hakon.sagehaug@bccs.uib.no>
+jamesc=<jamesc@mail.cern.ch>
+jfilipov=Jiří Filipovič <fila@ics.muni.cz>
+jgadabin=<jgadabin@mail.cern.ch>
+jgrosseo=<Jan.Fiete.Grosse-Oetringhaus@cern.ch>
+jkosina=<Jiri.Kosina@cern.ch>
+jkovacs=<smith@sztaki.hu>
+jmontagn=<johan@i3s.unice.fr>
+jnovak=<jnovak@mail.cern.ch>
+jouvenot=<jouvenot@lal.in2p3.fr>
+jpospi=Jan Pospíšil <honik@ntc.zcu.cz>
+jsitera=Jiří Sitera <sitera@civ.zcu.cz>
+jtemplon=<templon@nikhef.nl>
+jwalk=<j.a.walk@rl.ac.uk>
+jwhite=John White <John.White@cern.ch>
+kavousan=<kavousan@epcc.ed.ac.uk>
+kiryanov=<kiryanov@mail.cern.ch>
+kislay=<kislay@mail.cern.ch>
+knienart=<krzysztof.nienartowicz@cern.ch>
+koblitz=<birger.koblitz@cern.ch>
+krajesh=<krajesh@mail.cern.ch>
+kskaburs=<Konstantin.Skaburskas@cern.ch>
+lfield=<Laurence.Field@cern.ch>
+lkudarim=<Loukik.Kudarimoti@dante.org.uk>
+lmatyska=Luděk Matyska <ludek@ics.muni.cz>
+loomis=<charles.loomis@cern.ch>
+lorentey=<Karoly.Lorentey@cern.ch>
+lpetronz=<luca.petronzio@elsagdatamat.com>
+lspitsky=<lspitsky@mail.cern.ch>
+maart=<maart@mail.cern.ch>
+mahsant=<mehrana@pdc.kth.se>
+malandes=Maria Alandes Pradillo <Maria.Alandes.Pradillo@cern.ch>
+markusw=<markus.schulz@cern.ch>
+marzolla=<marzolla@pd.infn.it>
+mbarroso=<maria.barroso.lopez@cern.ch>
+mccance=<gavin.mccance@cern.ch>
+mcecchi=<marco.cecchi@cnaf.infn.it>
+mcnab=Andrew McNab <andrew.mcnab@manchester.ac.uk>
+mcraig=<m.s.craig@rl.ac.uk>
+metery=<rene.metery@c-s.fr>
+mezzadri=<massimo.mezzadri@mi.infn.it>
+mikkonen=<henri.mikkonen@cern.ch>
+mjiang=<m.jiang@rl.ac.uk>
+mmordacc=<matteo.mordacchini@pd.infn.it>
+mmulac=Miloš Mulač <mulac@civ.zcu.cz>
+molnarzs=<zsolt.molnar@cern.ch>
+monforte=<salvatore.monforte@ct.infn.it>
+mpappala=<marco.pappalardo@ct.infn.it>
+mpiotrow=<mpiotrow@epcc.ed.ac.uk>
+mruda=Miroslav Ruda <ruda@ics.muni.cz>
+msalle=<msalle@nikhef.nl>
+msottila=<marco.sottilaro@datamat.it>
+msteenba=Martijn Oldenhof <martijn@nikhef.nl>
+mvocu=Michal Voců <michal@ruk.cuni.cz>
+nsantos=<nuno.santos@cern.ch>
+okoeroo=<okoeroo@nikhef.nl>
+omulmo=<mulmo@pdc.kth.se>
+pandreet=Paolo Andreetto <paolo.andreetto@pd.infn.it>
+parumuga=<paventhan@rl.ac.uk>
+pbhatti=<P.Bhatti@rl.ac.uk>
+pbuncic=<predrag.buncic@cern.ch>
+pchand=<pchand@mail.cern.ch>
+ptedesco=<Paolo.Tedesco@cern.ch>
+pflury=<flury@switch.ch>
+pguio=<patrick.guio@bccs.uib.no>
+pmendez=<pmendez@mail.cern.ch>
+psaiz=<pablo.saiz@cern.ch>
+rbritoda=<ricardo.rocha@cern.ch>
+rbyrom=<r.byrom@rl.ac.uk>
+rcordero=<r.cordero@rl.ac.uk>
+reale=<mario.reale@cern.ch>
+riojac3=<Rosa.Garcia@cern.ch>
+rlops=<roberto.lops@cnaf.infn.it>
+rmetery=<rene.metery@c-s.fr>
+rmollon=<remi.mollon@cern.ch>
+rpiro=<piro@to.infn.it>
+rwartel=<rwartel@mail.cern.ch>
+santinel=<santinel@mail.cern.ch>
+sbertocc=<sara.bertocco@pd.infn.it>
+sciaba=<sciaba@mail.cern.ch>
+sdallafi=<simone.dallafina@pd.infn.it>
+sgaravat=<massimo.sgaravatto@cern.ch>
+shicks=<S.J.C.Hicks@rl.ac.uk>
+shuliao=Shu-Ting Liao <shuting@gate.sinica.edu.tw>
+skaushal=Shiv Kaushal <shiv.kaushal@manchester.ac.uk>
+sobreira=<antonio.sobreira.de.almeida@cern.ch>
+sponce=<Sebastien.Ponce@cern.ch>
+squizzat=<silvano.squizzato@pd.infn.it>
+straldi=<Sergio.Traldi@pd.infn.it>
+straylen=Steve Traylen <Steve.Traylen@cern.ch>
+szamsu=<akos.frohner@cern.ch>
+tanya=<tlevshin@fnal.gov>
+taspelie=<trygve.aspelien@bccs.uib.no>
+theile=<madeleine.theile@cern.ch>
+timbell=<timbell@mail.cern.ch>
+tferrari=<tiziana.ferrari@cnaf.infn.it>
+urbah=<urbah@lal.in2p3.fr>
+uschwick=<ulrich.schwickerath@cern.ch>
+vaibhav=<vaibhav.kumar@cern.ch>
+valtri=František Dvořák <valtri@civ.zcu.cz>
+vciaschi=<vincenzo.ciaschini@cnaf.infn.it>
+vgalakti=Galaktionov Victor <Victor.Galaktionov@cern.ch>
+vmedici=<valentina.medici@cnaf.infn.it>
+vtschopp=<tschopp@switch.ch>
+vventuri=<valerio.venturi@cnaf.infn.it>
+vvidic=<vvdidc@mail.cern.ch>
+wczech=<Wojciech.Czech@cern.ch>
+zaborov=Dmitry Zaborov <dmitry.zaborov@cern.ch>
+zangran=<luigi.zangrando@pd.infn.it>
+zfarkas=<zoltan.farkas@cern.ch>
+zsalvet=Zdeněk Salvet <salvet@ics.muni.cz>
+zsustr=Zdeněk Šustr <sustr4@cesnet.cz>
+zurek=Marian Zurek <Marian.Zurek@cern.ch>
+jskrabal=Jiří Škrábal <nykolas@ics.muni.cz>
+pucciani=Gianni Pucciani <Gianni.Pucciani@cern.ch>
+happonen=Kalle Happonen <kalle.happonen@hip.fi>
+unterkir=Andreas Unterkircher <andreas.unterkircher@cern.ch>
+aalvarez=Alejandro Alvarez Ayllon <alejandro.alvarez.ayllon@cern.ch>
+flammer=Joachim Flammer <joachim.flammer@cern.ch>
+dqing=Di Qing <Di.Qing@cern.ch>
+sli=Liudmila Stepanova <sli@inr.ru>
+ssayzhen=Sofia Sayzhenkova <ssayzhen@cern.ch>
+klopov=Nikolai Klopov <Nikolai.Klopov@cern.ch>
diff --git a/cvs2git-inc.sh b/cvs2git-inc.sh
new file mode 100755 (executable)
index 0000000..bcb7f3f
--- /dev/null
@@ -0,0 +1,46 @@
+#! /bin/bash
+
+# 1) off-line import via cvs2svn and rebasing, ...
+#==> jra1mw.git
+
+# 1) prepare one-module CVS repo
+#mkdir jra1mw-cvssync.cvs
+#export CVSROOT=`pwd`/jra1mw-cvssync.cvs
+#mkdir empty
+#cd empty
+#cvs import jra1mw x y
+#cd ..
+#rmdir empty
+
+# sync (fetch) files into jra1mw.cvs
+#...
+
+# sync fetched CVS repo to one-module CVS repo
+rsync --archive --verbose jra1mw.cvs/ jra1mw-cvssync.cvs/jra1mw/
+
+# import!
+[ -d "jra1mw-cvssync.git/.git" ] || (echo "First run! Preparation steps and initial import must be done manually." && exit 1)
+git cvsimport -d `pwd`/jra1mw-cvssync.cvs -C jra1mw-cvssync.git -a -k -z30 -A authors.txt jra1mw
+
+# firsttime setup
+#echo "jra1mw git repo for sync from LCG CVS." > jra1mw-cvssync.git/.git/description
+#cd jra1mw.git
+#git remote add cvssync `pwd`/jra1mw-cvssync.git
+#git fetch cvssync
+#for b in branch_RC31_3 branch_2_0 branch_2_1 branch_workflow master; do
+#      echo $b
+#      git checkout $b || break
+#      git merge -s ours --stat cvssync/$b || break
+#done
+#cd -
+
+# merge changes
+cd jra1mw.git
+# rather manually (into FETCH_HEAD)
+git fetch cvssync
+# tady by např. komity do modulů prohlášených za smazané způsobily konflikty
+for b in branch_RC31_3 branch_2_0 branch_2_1 branch_workflow master; do
+       echo $b
+       git checkout $b || exit 1
+       git merge cvssync/$b -- || exit 1
+done
diff --git a/cvs2git.options b/cvs2git.options
new file mode 100644 (file)
index 0000000..03ab40d
--- /dev/null
@@ -0,0 +1,819 @@
+# (Be in -*- mode: python; coding: utf-8 -*- mode.)
+#
+# ====================================================================
+# Copyright (c) 2006-2010 CollabNet.  All rights reserved.
+#
+# This software is licensed as described in the file COPYING, which
+# you should have received as part of this distribution.  The terms
+# are also available at http://subversion.tigris.org/license-1.html.
+# If newer versions of this license are posted there, you may use a
+# newer version instead, at your option.
+#
+# This software consists of voluntary contributions made by many
+# individuals.  For exact contribution history, see the revision
+# history and logs, available at http://cvs2svn.tigris.org/.
+# ====================================================================
+
+#                  #####################
+#                  ## PLEASE READ ME! ##
+#                  #####################
+#
+# This is a template for an options file that can be used to configure
+# cvs2svn to convert to git rather than to Subversion.  See
+# www/cvs2git.html and www/cvs2svn.html for general information, and
+# see the comments in this file for information about what options are
+# available and how they can be set.
+#
+# The program that is run to convert from CVS to git is called
+# cvs2git.  Run it with the --options option, passing it this file
+# like this:
+#
+#     cvs2git --options=cvs2git-example.options
+#
+# The output of cvs2git is a blob file and a dump file that can be
+# loaded into git using the "git fast-import" command.  Please read
+# www/cvs2git.html for more information.
+#
+# Many options do not have defaults, so it is easier to copy this file
+# and modify what you need rather than creating a new options file
+# from scratch.  This file is in Python syntax, but you don't need to
+# know Python to modify it.  But if you *do* know Python, then you
+# will be happy to know that you can use arbitary Python constructs to
+# do fancy configuration tricks.
+#
+# But please be aware of the following:
+#
+# * In many places, leading whitespace is significant in Python (it is
+#   used instead of curly braces to group statements together).
+#   Therefore, if you don't know what you are doing, it is best to
+#   leave the whitespace as it is.
+#
+# * In normal strings, Python treats a backslash ("\") as an escape
+#   character.  Therefore, if you want to specify a string that
+#   contains a backslash, you need either to escape the backslash with
+#   another backslash ("\\"), or use a "raw string", as in one if the
+#   following equivalent examples:
+#
+#       cvs_executable = 'c:\\windows\\system32\\cvs.exe'
+#       cvs_executable = r'c:\windows\system32\cvs.exe'
+#
+#   See http://docs.python.org/tutorial/introduction.html#strings for
+#   more information.
+#
+# Two identifiers will have been defined before this file is executed,
+# and can be used freely within this file:
+#
+#     ctx -- a Ctx object (see cvs2svn_lib/context.py), which holds
+#         many configuration options
+#
+#     run_options -- an instance of the GitRunOptions class (see
+#         cvs2svn_lib/git_run_options.py), which holds some variables
+#         governing how cvs2git is run
+
+
+# Import some modules that are used in setting the options:
+import os
+
+from cvs2svn_lib import config
+from cvs2svn_lib import changeset_database
+from cvs2svn_lib.common import CVSTextDecoder
+from cvs2svn_lib.log import logger
+from cvs2svn_lib.project import Project
+from cvs2svn_lib.git_revision_collector import GitRevisionCollector
+from cvs2svn_lib.external_blob_generator import ExternalBlobGenerator
+from cvs2svn_lib.git_output_option import GitRevisionMarkWriter
+from cvs2svn_lib.git_output_option import GitOutputOption
+from cvs2svn_lib.dvcs_common import KeywordHandlingPropertySetter
+from cvs2svn_lib.revision_manager import NullRevisionCollector
+from cvs2svn_lib.rcs_revision_manager import RCSRevisionReader
+from cvs2svn_lib.cvs_revision_manager import CVSRevisionReader
+from cvs2svn_lib.symbol_strategy import AllBranchRule
+from cvs2svn_lib.symbol_strategy import AllTagRule
+from cvs2svn_lib.symbol_strategy import BranchIfCommitsRule
+from cvs2svn_lib.symbol_strategy import ExcludeRegexpStrategyRule
+from cvs2svn_lib.symbol_strategy import ForceBranchRegexpStrategyRule
+from cvs2svn_lib.symbol_strategy import ForceTagRegexpStrategyRule
+from cvs2svn_lib.symbol_strategy import ExcludeTrivialImportBranchRule
+from cvs2svn_lib.symbol_strategy import ExcludeVendorBranchRule
+from cvs2svn_lib.symbol_strategy import HeuristicStrategyRule
+from cvs2svn_lib.symbol_strategy import UnambiguousUsageRule
+from cvs2svn_lib.symbol_strategy import HeuristicPreferredParentRule
+from cvs2svn_lib.symbol_strategy import SymbolHintsFileRule
+from cvs2svn_lib.symbol_transform import ReplaceSubstringsSymbolTransform
+from cvs2svn_lib.symbol_transform import RegexpSymbolTransform
+from cvs2svn_lib.symbol_transform import IgnoreSymbolTransform
+from cvs2svn_lib.symbol_transform import NormalizePathsSymbolTransform
+from cvs2svn_lib.property_setters import AutoPropsPropertySetter
+from cvs2svn_lib.property_setters import ConditionalPropertySetter
+from cvs2svn_lib.property_setters import cvs_file_is_binary
+from cvs2svn_lib.property_setters import CVSBinaryFileDefaultMimeTypeSetter
+from cvs2svn_lib.property_setters import CVSBinaryFileEOLStyleSetter
+from cvs2svn_lib.property_setters import DefaultEOLStyleSetter
+from cvs2svn_lib.property_setters import EOLStyleFromMimeTypeSetter
+from cvs2svn_lib.property_setters import ExecutablePropertySetter
+from cvs2svn_lib.property_setters import KeywordsPropertySetter
+from cvs2svn_lib.property_setters import MimeMapper
+from cvs2svn_lib.property_setters import SVNBinaryFileKeywordsPropertySetter
+
+# To choose the level of logging output, uncomment one of the
+# following lines:
+#logger.log_level = logger.WARN
+#logger.log_level = logger.QUIET
+logger.log_level = logger.NORMAL
+#logger.log_level = logger.VERBOSE
+#logger.log_level = logger.DEBUG
+
+
+# The directory to use for temporary files:
+ctx.tmpdir = r'cvs2svn-tmp'
+
+# During FilterSymbolsPass, cvs2git records the contents of file
+# revisions into a "blob" file in git-fast-import format.  The
+# ctx.revision_collector option configures that process.  Choose one of the two ersions and customize its options.
+
+# This first alternative is much slower but is better tested and has a
+# chance of working with CVSNT repositories.  It invokes CVS or RCS to
+# reconstuct the contents of CVS file revisions:
+ctx.revision_collector = GitRevisionCollector(
+    # The file in which to write the git-fast-import stream that
+    # contains the file revision contents:
+    '1blob',
+
+    # The following option specifies how the revision contents of the
+    # RCS files should be read.
+    #
+    # RCSRevisionReader uses RCS's "co" program to extract the
+    # revision contents of the RCS files during CollectRevsPass.  The
+    # constructor argument specifies how to invoke the "co"
+    # executable.
+    #
+    # CVSRevisionReader uses the "cvs" program to extract the revision
+    # contents out of the RCS files during OutputPass.  This option is
+    # considerably slower than RCSRevisionReader because "cvs" is
+    # considerably slower than "co".  However, it works in some
+    # situations where RCSRevisionReader fails; see the HTML
+    # documentation of the "--use-cvs" option for details.  The
+    # constructor argument specifies how to invoke the "co"
+    # executable.
+    #
+    # Uncomment one of the two following lines:
+    #RCSRevisionReader(co_executable=r'co'),
+    CVSRevisionReader(cvs_executable=r'cvs'),
+    )
+# This second alternative is vastly faster than the version above.  It
+# uses an external Python program to reconstruct the contents of CVS
+# file revisions:
+#ctx.revision_collector = ExternalBlobGenerator('cvs2svn-tmp/git-blob.dat')
+
+# cvs2git doesn't need a revision reader because OutputPass only
+# refers to blobs that were output during CollectRevsPass, so leave
+# this option set to None.
+ctx.revision_reader = None
+
+# Change the following line to True if the conversion should only
+# include the trunk of the repository (i.e., all branches and tags
+# should be omitted from the conversion):
+ctx.trunk_only = False
+
+# How to convert CVS author names, log messages, and filenames to
+# Unicode.  The first argument to CVSTextDecoder is a list of encoders
+# that are tried in order in 'strict' mode until one of them succeeds.
+# If none of those succeeds, then fallback_encoder (if it is
+# specified) is used in lossy 'replace' mode.  Setting a fallback
+# encoder ensures that the encoder always succeeds, but it can cause
+# information loss.
+ctx.cvs_author_decoder = CVSTextDecoder(
+    [
+        'utf8',
+        'latin1',
+        ],
+    fallback_encoding='ascii'
+    )
+ctx.cvs_log_decoder = CVSTextDecoder(
+    [
+        'utf8',
+        'latin1',
+        ],
+    fallback_encoding='ascii'
+    )
+# You might want to be especially strict when converting filenames to
+# Unicode (e.g., maybe not specify a fallback_encoding).
+ctx.cvs_filename_decoder = CVSTextDecoder(
+    [
+        'utf8',
+        'latin1',
+        ],
+    fallback_encoding='ascii'
+    )
+
+# Template for the commit message to be used for initial project
+# commits.
+ctx.initial_project_commit_message = (
+    'Standard project directories initialized by cvs2svn.'
+    )
+
+# Template for the commit message to be used for post commits, in
+# which modifications to a vendor branch are copied back to trunk.
+# This message can use '%(revnum)d' to include the SVN revision number
+# of the revision that included the change to the vendor branch
+# (admittedly rather pointless in a cvs2git conversion).
+ctx.post_commit_message = (
+    'This commit was generated by cvs2svn to track changes on a CVS '
+    'vendor branch.'
+    )
+
+# Template for the commit message to be used for commits in which
+# symbols are created.  This message can use '%(symbol_type)s' to
+# include the type of the symbol ('branch' or 'tag') or
+# '%(symbol_name)s' to include the name of the symbol.
+ctx.symbol_commit_message = (
+    "This commit was manufactured by cvs2svn to create %(symbol_type)s "
+    "'%(symbol_name)s'."
+    )
+
+# Template for the commit message to be used for commits in which
+# tags are pseudo-merged back to their source branch.  This message can
+# use '%(symbol_name)s' to include the name of the symbol.
+# (Not used by default unless you enable tie_tag_fixup_branches on
+# GitOutputOption.)
+ctx.tie_tag_ancestry_message = (
+    "This commit was manufactured by cvs2svn to tie ancestry for "
+    "tag '%(symbol_name)s' back to the source branch."
+    )
+
+# Some CVS clients for MacOS store resource fork data into CVS along
+# with the file contents itself by wrapping it all up in a container
+# format called "AppleSingle".  Subversion currently does not support
+# MacOS resource forks.  Nevertheless, sometimes the resource fork
+# information is not necessary and can be discarded.  Set the
+# following option to True if you would like cvs2svn to identify files
+# whose contents are encoded in AppleSingle format, and discard all
+# but the data fork for such files before committing them to
+# Subversion.  (Please note that AppleSingle contents are identified
+# by the AppleSingle magic number as the first four bytes of the file.
+# This check is not failproof, so only set this option if you think
+# you need it.)
+ctx.decode_apple_single = False
+
+# This option can be set to the name of a filename to which are stored
+# statistics and conversion decisions about the CVS symbols.
+ctx.symbol_info_filename = None
+#ctx.symbol_info_filename = 'symbol-info.txt'
+
+# cvs2svn uses "symbol strategy rules" to help decide how to handle
+# CVS symbols.  The rules in a project's symbol_strategy_rules are
+# applied in order, and each rule is allowed to modify the symbol.
+# The result (after each of the rules has been applied) is used for
+# the conversion.
+#
+# 1. A CVS symbol might be used as a tag in one file and as a branch
+#    in another file.  cvs2svn has to decide whether to convert such a
+#    symbol as a tag or as a branch.  cvs2svn uses a series of
+#    heuristic rules to decide how to convert a symbol.  The user can
+#    override the default rules for specific symbols or symbols
+#    matching regular expressions.
+#
+# 2. cvs2svn is also capable of excluding symbols from the conversion
+#    (provided no other symbols depend on them.
+#
+# 3. CVS does not record unambiguously the line of development from
+#    which a symbol sprouted.  cvs2svn uses a heuristic to choose a
+#    symbol's "preferred parents".
+#
+# The standard branch/tag/exclude StrategyRules do not change a symbol
+# that has already been processed by an earlier rule, so in effect the
+# first matching rule is the one that is used.
+
+global_symbol_strategy_rules = [
+    # It is possible to specify manually exactly how symbols should be
+    # converted and what line of development should be used as the
+    # preferred parent.  To do so, create a file containing the symbol
+    # hints and enable the following option.
+    #
+    # The format of the hints file is described in the documentation
+    # for the --symbol-hints command-line option.  The file output by
+    # the --write-symbol-info (i.e., ctx.symbol_info_filename) option
+    # is in the same format.  The simplest way to use this option is
+    # to run the conversion through CollateSymbolsPass with
+    # --write-symbol-info option, copy the symbol info and edit it to
+    # create a hints file, then re-start the conversion at
+    # CollateSymbolsPass with this option enabled.
+    #SymbolHintsFileRule('symbol-hints.txt'),
+
+    # To force all symbols matching a regular expression to be
+    # converted as branches, add rules like the following:
+    #ForceBranchRegexpStrategyRule(r'branch.*'),
+
+    # To force all symbols matching a regular expression to be
+    # converted as tags, add rules like the following:
+    #ForceTagRegexpStrategyRule(r'tag.*'),
+
+    # To force all symbols matching a regular expression to be
+    # excluded from the conversion, add rules like the following:
+    ExcludeRegexpStrategyRule(r'^(x|y|initial|import)$'),
+
+    # Sometimes people use "cvs import" to get their own source code
+    # into CVS.  This practice creates a vendor branch 1.1.1 and
+    # imports the code onto the vendor branch as 1.1.1.1, then copies
+    # the same content to the trunk as version 1.1.  Normally, such
+    # vendor branches are useless and they complicate the SVN history
+    # unnecessarily.  The following rule excludes any branches that
+    # only existed as a vendor branch with a single import (leaving
+    # only the 1.1 revision).  If you want to retain such branches,
+    # comment out the following line.  (Please note that this rule
+    # does not exclude vendor *tags*, as they are not so easy to
+    # identify.)
+    ExcludeTrivialImportBranchRule(),
+
+    # To exclude all vendor branches (branches that had "cvs import"s
+    # on them but no other kinds of commits), uncomment the following
+    # line:
+    #ExcludeVendorBranchRule(),
+
+    # Usually you want this rule, to convert unambiguous symbols
+    # (symbols that were only ever used as tags or only ever used as
+    # branches in CVS) the same way they were used in CVS:
+    UnambiguousUsageRule(),
+
+    # If there was ever a commit on a symbol, then it cannot be
+    # converted as a tag.  This rule causes all such symbols to be
+    # converted as branches.  If you would like to resolve such
+    # ambiguities manually, comment out the following line:
+    BranchIfCommitsRule(),
+
+    # Last in the list can be a catch-all rule that is used for
+    # symbols that were not matched by any of the more specific rules
+    # above.  (Assuming that BranchIfCommitsRule() was included above,
+    # then the symbols that are still indeterminate at this point can
+    # sensibly be converted as branches or tags.)  Include at most one
+    # of these lines.  If none of these catch-all rules are included,
+    # then the presence of any ambiguous symbols (that haven't been
+    # disambiguated above) is an error:
+
+    # Convert ambiguous symbols based on whether they were used more
+    # often as branches or as tags:
+    HeuristicStrategyRule(),
+    # Convert all ambiguous symbols as branches:
+    #AllBranchRule(),
+    # Convert all ambiguous symbols as tags:
+    #AllTagRule(),
+
+    # The last rule is here to choose the preferred parent of branches
+    # and tags, that is, the line of development from which the symbol
+    # sprouts.
+    HeuristicPreferredParentRule(),
+    ]
+
+# Specify a username to be used for commits for which CVS doesn't
+# record the original author (for example, the creation of a branch).
+# This should be a simple (unix-style) username, but it can be
+# translated into a git-style name by the author_transforms map.
+ctx.username = 'cvs2svn'
+
+# ctx.file_property_setters and ctx.revision_property_setters contain
+# rules used to set the svn properties on files in the converted
+# archive.  For each file, the rules are tried one by one.  Any rule
+# can add or suppress one or more svn properties.  Typically the rules
+# will not overwrite properties set by a previous rule (though they
+# are free to do so).  ctx.file_property_setters should be used for
+# properties that remain the same for the life of the file; these
+# should implement FilePropertySetter.  ctx.revision_property_setters
+# should be used for properties that are allowed to vary from revision
+# to revision; these should implement RevisionPropertySetter.
+#
+# Obviously, SVN properties per se are not interesting for a cvs2git
+# conversion, but some of these properties have side-effects that do
+# affect the git output.  FIXME: Document this in more detail.
+ctx.file_property_setters.extend([
+    # To read auto-props rules from a file, uncomment the following line
+    # and specify a filename.  The boolean argument specifies whether
+    # case should be ignored when matching filenames to the filename
+    # patterns found in the auto-props file:
+    #AutoPropsPropertySetter(
+    #    r'/home/username/.subversion/config',
+    #    ignore_case=True,
+    #    ),
+
+    # To read mime types from a file and use them to set svn:mime-type
+    # based on the filename extensions, uncomment the following line
+    # and specify a filename (see
+    # http://en.wikipedia.org/wiki/Mime.types for information about
+    # mime.types files):
+    #MimeMapper(r'/etc/mime.types', ignore_case=False),
+
+    # Omit the svn:eol-style property from any files that are listed
+    # as binary (i.e., mode '-kb') in CVS:
+    CVSBinaryFileEOLStyleSetter(),
+
+    # If the file is binary and its svn:mime-type property is not yet
+    # set, set svn:mime-type to 'application/octet-stream'.
+    CVSBinaryFileDefaultMimeTypeSetter(),
+
+    # To try to determine the eol-style from the mime type, uncomment
+    # the following line:
+    #EOLStyleFromMimeTypeSetter(),
+
+    # Choose one of the following lines to set the default
+    # svn:eol-style if none of the above rules applied.  The argument
+    # is the svn:eol-style that should be applied, or None if no
+    # svn:eol-style should be set (i.e., the file should be treated as
+    # binary).
+    #
+    # The default is to treat all files as binary unless one of the
+    # previous rules has determined otherwise, because this is the
+    # safest approach.  However, if you have been diligent about
+    # marking binary files with -kb in CVS and/or you have used the
+    # above rules to definitely mark binary files as binary, then you
+    # might prefer to use 'native' as the default, as it is usually
+    # the most convenient setting for text files.  Other possible
+    # options: 'CRLF', 'CR', 'LF'.
+    DefaultEOLStyleSetter(None),
+    #DefaultEOLStyleSetter('native'),
+
+    # Prevent svn:keywords from being set on files that have
+    # svn:eol-style unset.
+    SVNBinaryFileKeywordsPropertySetter(),
+
+    # If svn:keywords has not been set yet, set it based on the file's
+    # CVS mode:
+    KeywordsPropertySetter(config.SVN_KEYWORDS_VALUE),
+
+    # Set the svn:executable flag on any files that are marked in CVS as
+    # being executable:
+    ExecutablePropertySetter(),
+
+    # The following causes keywords to be untouched in binary files and
+    # collapsed in all text to be committed:
+    ConditionalPropertySetter(
+        cvs_file_is_binary, KeywordHandlingPropertySetter('untouched'),
+        ),
+    KeywordHandlingPropertySetter('collapsed'),
+
+    ])
+ctx.revision_property_setters.extend([
+    ])
+
+# To skip the cleanup of temporary files, uncomment the following
+# option:
+#ctx.skip_cleanup = True
+
+
+# In CVS, it is perfectly possible to make a single commit that
+# affects more than one project or more than one branch of a single
+# project.  Subversion also allows such commits.  Therefore, by
+# default, when cvs2svn sees what looks like a cross-project or
+# cross-branch CVS commit, it converts it into a
+# cross-project/cross-branch Subversion commit.
+#
+# However, other tools and SCMs have trouble representing
+# cross-project or cross-branch commits.  (For example, Trac's Revtree
+# plugin, http://www.trac-hacks.org/wiki/RevtreePlugin is confused by
+# such commits.)  Therefore, we provide the following two options to
+# allow cross-project/cross-branch commits to be suppressed.
+
+# cvs2git only supports single-project conversions (multiple-project
+# conversions wouldn't really make sense for git anyway).  So this
+# option must be set to False:
+ctx.cross_project_commits = False
+
+# git itself doesn't allow commits that affect more than one branch,
+# so this option must be set to False:
+ctx.cross_branch_commits = False
+
+# cvs2git does not yet handle translating .cvsignore files into
+# .gitignore files, so by default, the .cvsignore files are included
+# in the conversion output.  If you would like to omit the .cvsignore
+# files from the output, set this option to False:
+ctx.keep_cvsignore = True
+
+# By default, it is a fatal error for a CVS ",v" file to appear both
+# inside and outside of an "Attic" subdirectory (this should never
+# happen, but frequently occurs due to botched repository
+# administration).  If you would like to retain both versions of such
+# files, change the following option to True, and the attic version of
+# the file will be written to a subdirectory called "Attic" in the
+# output repository:
+ctx.retain_conflicting_attic_files = False
+
+# CVS uses unix login names as author names whereas git requires
+# author names to be of the form "foo <bar>".  The default is to set
+# the git author to "cvsauthor <cvsauthor>".  author_transforms can be
+# used to map cvsauthor names (e.g., "jrandom") to a true name and
+# email address (e.g., "J. Random <jrandom@example.com>" for the
+# example shown).  All strings should be either Unicode strings (i.e.,
+# with "u" as a prefix) or 8-bit strings in the utf-8 encoding.  The
+# values can either be strings in the form "name <email>" or tuples
+# (name, email).  Please substitute your own project's usernames here
+# to use with the author_transforms option of GitOutputOption below.
+author_transforms={
+    'cvsadmin' : "<Cvs.Administrator@cern.ch>",
+    'manuel' : "<Manuel.Guijarro@cern.ch>",
+    'reguero' : "<Ignacio.Reguero@cern.ch>",
+    'defert' : "<Philippe.Defert@cern.ch>",
+    'slopiens' : "<slopiens@mail.cern.ch>",
+    'aborgia' : "<borgia@pd.infn.it>",
+    'acava' : "<andrea.cavallini@elsagdatamat.com>",
+    'adorigo' : "<alvise.dorigo@pd.infn.it>",
+    'aduarte' : "<Alexandre.Duarte@cern.ch>",
+    'aduncan' : "<a.duncan@rl.ac.uk>",
+    'aferraro' : "<aferraro@cern.ch>",
+    'afernand' : "<Alvaro.Fernandez.Casani@cern.ch>",
+    'aguarise' : "<guarise@to.infn.it>",
+    'ajavadza' : "<Ali.Javadzadeh.Boloori@cern.ch>",
+    'akatsifo' : "Asterios Katsifodimos <asteriosk@cs.ucy.ac.cy>",
+    'akrenek' : "Aleš Křenek <ljocha@ics.muni.cz>",
+    'akrueger' : "<andrei.krueger@cern.ch>",
+    'akuseju' : "<kush.kuseju@rl.ac.uk>",
+    'amarasch' : "<alessandro.maraschini@elsagdatamat.com>",
+    'amillar' : "<p.millar@physics.gla.ac.uk>",
+    'anechaev' : "<Andrey.Nechaevskiy@cern.ch>",
+    'apatil' : "<anand.patil@dante.org.uk>",
+    'apeters' : "<andreas.joachim.peters@cern.ch>",
+    'aphipps' : "<alistair@epcc.ed.ac.uk>",
+    'aretico' : "<antonio.retico@cern.ch>",
+    'asaroka' : "<a.soroko1@physics.ox.ac.uk>",
+    'auzhinsk' : "<Alexander.Uzhinskiy@cern.ch>",
+    'avellino' : "<giuseppe.avellino@datamat.it>",
+    'awilson' : "<a.j.wilson@rl.ac.uk>",
+    'badino' : "<paolo.badino@cern.ch>",
+    'baud' : "<Jean-Philippe.Baud@cern.ch>",
+    'bcouturi' : "<Ben.Couturier@cern.ch>",
+    'caguado' : "<carlos.cguado.sanchez@cern.ch>",
+    'caltroni' : "<caltroni@cern.ch>",
+    'campanas' : "<campans@mail.cern.ch>",
+    'ccherubi' : "<claudio.cherubino@ct.infn.it>",
+    'cdelcano' : "<c.del.cano.novales@rl.ac.uk>",
+    'ceccanti' : "<andrea.ceccanti@cnaf.infn.it>",
+    'charaka' : "<charaka@epcc.ed.ac.uk>",
+    'cirstoiu' : "<catalin.cirstoiu@cern.ch>",
+    'cnichols' : "<cnichols@mail.cern.ch>",
+    'cornwall' : "<l.a.cornwall@rl.ac.uk>",
+    'corvo' : "<corvo@mail.cern.ch>",
+    'cpera' : "<christophe.pera@creatis.insa-lyon.fr>",
+    'daiftimi' : "<cristina.aiftimiei@pd.infn.it>",
+    'dcollado' : "David Collados <david.collados@cern.ch>",
+    'delgadop' : "<delgadop@mail.cern.ch>",
+    'dfeich' : "<derek.feichtinger@cern.ch>",
+    'dfrodrig' : "<daniel.rodrigues@cern.ch>",
+    'dhsmith' : "<David.Smith@cern.ch>",
+    'diana' : "<diana.bosio@cern.ch>",
+    'digamber' : "<digamber@mail.cern.ch>",
+    'digirola' : "<alessandro.di.girolamo@cern.ch>",
+    'digiusto' : "<cinzia.digiusto@cnaf.infn.it>",
+    'dimeglio' : "Alberto Di Meglio <alberto.di.meglio@cern.ch>",
+    'dkouril' : "Daniel Kouřil <kouril@ics.muni.cz>",
+    'dpiparo' : "<Danilo.Piparo@cern.ch>",
+    'drebatto' : "<david.rebatto@mi.infn.it>",
+    'dshiyach' : "Dimitar Shiyachki <Dimitar.Shiyachki@cern.ch>",
+    'dusan' : "<Dusan.Vudragovic@cern.ch>",
+    'dvirdee' : "<davy@epcc.ed.ac.uk>",
+    'efrizzie' : "<eric.frizziero@pd.infn.it>",
+    'elisal' : "<Elisa.Lanciotti@cern.ch>",
+    'emartel' : "<enzo.martelli@mi.infn.it>",
+    'emolina' : "Elisabetta Molinari <elisabetta.molinari@cern.ch>",
+    'eryabink' : "<eryabink@mail.cern.ch>",
+    'eronchie' : "Elisabetta Ronchieri <elisabetta.ronchieri@cnaf.infn.it>",
+    'fchollet' : "<fchollet@mail.cern.ch>",
+    'fede' : "<fede@cppm.in2p3.fr>",
+    'fisher' : "<dr.s.m.fisher@gmail.com>",
+    'flavia' : "<flavia@mail.cern.ch>",
+    'fnaz' : "<fnaz@mail.cern.ch>",
+    'fpacini' : "<fabrizio.pacini@datamat.it>",
+    'fprelz' : "<francesco.prelz@mi.infn.it>",
+    'fscharin' : "<florian@epcc.ed.ac.uk>",
+    'fschaer' : "<fschaer@mail.cern.ch>",
+    'gpatania' : "<patania@to.infn.it>",
+    'glbuild' : "Master Builder <glbuilder@cern.ch>",
+    'gdebrecz' : "Gergely Debreczeni <Gergely.Debreczeni@cern.ch>",
+    'giaco' : "<francesco.giacomini@cnaf.infn.it>",
+    'gianelle' : "Alessio Gianelle <alessio.gianelle@pd.infn.it>",
+    'gfiorent' : "<giuseppe.fiorentino@mi.infn.it>",
+    'gamoros' : "<amoros@ific.uv.es>",
+    'gmerino' : "<gmerino@mail.cern.ch>",
+    'gombasg' : "<gabos.gombas@cern.ch>",
+    'goncalo' : "<goncalo@lip.pt>",
+    'gpatania' : "<patania@to.infn.it>",
+    'grodid' : "<grodid@mail.cern.ch>",
+    'groep' : "<davidg@nikhef.nl>",
+    'grubini' : "<gianluca.rubini@cnaf.infn.it>",
+    'gstewart' : "<g.stewart@physics.gla.ac.uk>",
+    'hahkala' : "<joni.hahkala@cern.ch>",
+    'harakaly' : "Robert Harakaly <robert.harakaly@cern.ch>",
+    'hemmer' : "<frederic.hemmer@cern.ch>",
+    'hsagehau' : "<hakon.sagehaug@bccs.uib.no>",
+    'jamesc' : "<jamesc@mail.cern.ch>",
+    'jfilipov' : "Jiří Filipovič <fila@ics.muni.cz>",
+    'jgadabin' : "<jgadabin@mail.cern.ch>",
+    'jgrosseo' : "<Jan.Fiete.Grosse-Oetringhaus@cern.ch>",
+    'jkosina' : "<Jiri.Kosina@cern.ch>",
+    'jkovacs' : "<smith@sztaki.hu>",
+    'jmontagn' : "<johan@i3s.unice.fr>",
+    'jnovak' : "<jnovak@mail.cern.ch>",
+    'jouvenot' : "<jouvenot@lal.in2p3.fr>",
+    'jpospi' : "Jan Pospíšil <honik@ntc.zcu.cz>",
+    'jsitera' : "Jiří Sitera <sitera@civ.zcu.cz>",
+    'jtemplon' : "<templon@nikhef.nl>",
+    'jwalk' : "<j.a.walk@rl.ac.uk>",
+    'jwhite' : "John White <John.White@cern.ch>",
+    'kavousan' : "<kavousan@epcc.ed.ac.uk>",
+    'kiryanov' : "<kiryanov@mail.cern.ch>",
+    'kislay' : "<kislay@mail.cern.ch>",
+    'knienart' : "<krzysztof.nienartowicz@cern.ch>",
+    'koblitz' : "<birger.koblitz@cern.ch>",
+    'krajesh' : "<krajesh@mail.cern.ch>",
+    'kskaburs' : "<Konstantin.Skaburskas@cern.ch>",
+    'lfield' : "<Laurence.Field@cern.ch>",
+    'lkudarim' : "<Loukik.Kudarimoti@dante.org.uk>",
+    'lmatyska' : "Luděk Matyska <ludek@ics.muni.cz>",
+    'loomis' : "<charles.loomis@cern.ch>",
+    'lorentey' : "<Karoly.Lorentey@cern.ch>",
+    'lpetronz' : "<luca.petronzio@elsagdatamat.com>",
+    'lspitsky' : "<lspitsky@mail.cern.ch>",
+    'maart' : "<maart@mail.cern.ch>",
+    'mahsant' : "<mehrana@pdc.kth.se>",
+    'malandes' : "Maria Alandes Pradillo <Maria.Alandes.Pradillo@cern.ch>",
+    'markusw' : "<markus.schulz@cern.ch>",
+    'marzolla' : "<marzolla@pd.infn.it>",
+    'mbarroso' : "<maria.barroso.lopez@cern.ch>",
+    'mccance' : "<gavin.mccance@cern.ch>",
+    'mcecchi' : "<marco.cecchi@cnaf.infn.it>",
+    'mcnab' : "Andrew McNab <andrew.mcnab@manchester.ac.uk>",
+    'mcraig' : "<m.s.craig@rl.ac.uk>",
+    'metery' : "<rene.metery@c-s.fr>",
+    'mezzadri' : "<massimo.mezzadri@mi.infn.it>",
+    'mikkonen' : "<henri.mikkonen@cern.ch>",
+    'mjiang' : "<m.jiang@rl.ac.uk>",
+    'mmordacc' : "<matteo.mordacchini@pd.infn.it>",
+    'mmulac' : "Miloš Mulač <mulac@civ.zcu.cz>",
+    'molnarzs' : "<zsolt.molnar@cern.ch>",
+    'monforte' : "<salvatore.monforte@ct.infn.it>",
+    'mpappala' : "<marco.pappalardo@ct.infn.it>",
+    'mpiotrow' : "<mpiotrow@epcc.ed.ac.uk>",
+    'mruda' : "Miroslav Ruda <ruda@ics.muni.cz>",
+    'msalle' : "<msalle@nikhef.nl>",
+    'msottila' : "<marco.sottilaro@datamat.it>",
+    'msteenba' : "Martijn Oldenhof <martijn@nikhef.nl>",
+    'mvocu' : "Michal Voců <michal@ruk.cuni.cz>",
+    'nsantos' : "<nuno.santos@cern.ch>",
+    'okoeroo' : "<okoeroo@nikhef.nl>",
+    'omulmo' : "<mulmo@pdc.kth.se>",
+    'pandreet' : "Paolo Andreetto <paolo.andreetto@pd.infn.it>",
+    'parumuga' : "<paventhan@rl.ac.uk>",
+    'pbhatti' : "<P.Bhatti@rl.ac.uk>",
+    'pbuncic' : "<predrag.buncic@cern.ch>",
+    'pchand' : "<pchand@mail.cern.ch>",
+    'ptedesco' : "<Paolo.Tedesco@cern.ch>",
+    'pflury' : "<flury@switch.ch>",
+    'pguio' : "<patrick.guio@bccs.uib.no>",
+    'pmendez' : "<pmendez@mail.cern.ch>",
+    'psaiz' : "<pablo.saiz@cern.ch>",
+    'rbritoda' : "<ricardo.rocha@cern.ch>",
+    'rbyrom' : "<r.byrom@rl.ac.uk>",
+    'rcordero' : "<r.cordero@rl.ac.uk>",
+    'reale' : "<mario.reale@cern.ch>",
+    'riojac3' : "<Rosa.Garcia@cern.ch>",
+    'rlops' : "<roberto.lops@cnaf.infn.it>",
+    'rmetery' : "<rene.metery@c-s.fr>",
+    'rmollon' : "<remi.mollon@cern.ch>",
+    'rpiro' : "<piro@to.infn.it>",
+    'rwartel' : "<rwartel@mail.cern.ch>",
+    'santinel' : "<santinel@mail.cern.ch>",
+    'sbertocc' : "<sara.bertocco@pd.infn.it>",
+    'sciaba' : "<sciaba@mail.cern.ch>",
+    'sdallafi' : "<simone.dallafina@pd.infn.it>",
+    'sgaravat' : "<massimo.sgaravatto@cern.ch>",
+    'shicks' : "<S.J.C.Hicks@rl.ac.uk>",
+    'shuliao' : "Shu-Ting Liao <shuting@gate.sinica.edu.tw>",
+    'skaushal' : "Shiv Kaushal <shiv.kaushal@manchester.ac.uk>",
+    'sobreira' : "<antonio.sobreira.de.almeida@cern.ch>",
+    'sponce' : "<Sebastien.Ponce@cern.ch>",
+    'squizzat' : "<silvano.squizzato@pd.infn.it>",
+    'straldi' : "<Sergio.Traldi@pd.infn.it>",
+    'straylen' : "Steve Traylen <Steve.Traylen@cern.ch>",
+    'szamsu' : "<akos.frohner@cern.ch>",
+    'tanya' : "<tlevshin@fnal.gov>",
+    'taspelie' : "<trygve.aspelien@bccs.uib.no>",
+    'theile' : "<madeleine.theile@cern.ch>",
+    'timbell' : "<timbell@mail.cern.ch>",
+    'tferrari' : "<tiziana.ferrari@cnaf.infn.it>",
+    'urbah' : "<urbah@lal.in2p3.fr>",
+    'uschwick' : "<ulrich.schwickerath@cern.ch>",
+    'vaibhav' : "<vaibhav.kumar@cern.ch>",
+    'valtri' : "František Dvořák <valtri@civ.zcu.cz>",
+    'vciaschi' : "<vincenzo.ciaschini@cnaf.infn.it>",
+    'vgalakti' : "Galaktionov Victor <Victor.Galaktionov@cern.ch>",
+    'vmedici' : "<valentina.medici@cnaf.infn.it>",
+    'vtschopp' : "<tschopp@switch.ch>",
+    'vventuri' : "<valerio.venturi@cnaf.infn.it>",
+    'vvidic' : "<vvdidc@mail.cern.ch>",
+    'wczech' : "<Wojciech.Czech@cern.ch>",
+    'zaborov' : "Dmitry Zaborov <dmitry.zaborov@cern.ch>",
+    'zangran' : "<luigi.zangrando@pd.infn.it>",
+    'zfarkas' : "<zoltan.farkas@cern.ch>",
+    'zsalvet' : "Zdeněk Salvet <salvet@ics.muni.cz>",
+    'zsustr' : "Zdeněk Šustr <sustr4@cesnet.cz>",
+    'zurek' : "Marian Zurek <Marian.Zurek@cern.ch>",
+    'jskrabal' : "Jiří Škrábal <nykolas@ics.muni.cz>",
+    'pucciani' : "Gianni Pucciani <Gianni.Pucciani@cern.ch>",
+    'happonen' : "Kalle Happonen <kalle.happonen@hip.fi>",
+    'unterkir' : "Andreas Unterkircher <andreas.unterkircher@cern.ch>",
+    'aalvarez' : "Alejandro Alvarez Ayllon <alejandro.alvarez.ayllon@cern.ch>",
+    'flammer' : "Joachim Flammer <joachim.flammer@cern.ch>",
+    'dqing' : "Di Qing <Di.Qing@cern.ch>",
+    'sli' : "Liudmila Stepanova <sli@inr.ru>",
+    'ssayzhen' : "Sofia Sayzhenkova <ssayzhen@cern.ch>",
+    'klopov' : "Nikolai Klopov <Nikolai.Klopov@cern.ch>",
+  
+     # This one will be used for commits for which CVS doesn't record
+     # the original author, as explained above.
+    'cvs2svn' : 'cvs2svn <admin@example.com>',
+    }
+
+# This is the main option that causes cvs2svn to output to a
+# "fastimport"-format dumpfile rather than to Subversion:
+ctx.output_option = GitOutputOption(
+    # The file in which to write the git-fast-import stream that
+    # contains the changesets and branch/tag information:
+    '2dump',
+
+    # The blobs will be written via the revision recorder, so in
+    # OutputPass we only have to emit references to the blob marks:
+    GitRevisionMarkWriter(),
+
+    # Optional map from CVS author names to git author names:
+    author_transforms=author_transforms,
+    )
+
+# Change this option to True to turn on profiling of cvs2svn (for
+# debugging purposes):
+run_options.profiling = False
+
+
+# Should CVSItem -> Changeset database files be memory mapped?  In
+# some tests, using memory mapping speeded up the overall conversion
+# by about 5%.  But this option can cause the conversion to fail with
+# an out of memory error if the conversion computer runs out of
+# virtual address space (e.g., when running a very large conversion on
+# a 32-bit operating system).  Therefore it is disabled by default.
+# Uncomment the following line to allow these database files to be
+# memory mapped.
+#changeset_database.use_mmap_for_cvs_item_to_changeset_table = True
+
+# Now set the project to be converted to git.  cvs2git only supports
+# single-project conversions, so this method must only be called
+# once:
+run_options.set_project(
+    # The filesystem path to the part of the CVS repository (*not* a
+    # CVS working copy) that should be converted.  This may be a
+    # subdirectory (i.e., a module) within a larger CVS repository.
+    r'jra1mw.cvs',
+
+    # A list of symbol transformations that can be used to rename
+    # symbols in this project.
+    symbol_transforms=[
+        # Use IgnoreSymbolTransforms like the following to completely
+        # ignore symbols matching a regular expression when parsing
+        # the CVS repository, for example to avoid warnings about
+        # branches with two names and to choose the preferred name.
+        # It is *not* recommended to use this instead of
+        # ExcludeRegexpStrategyRule; though more efficient,
+        # IgnoreSymbolTransforms are less flexible and don't exclude
+        # branches correctly.  The argument is a Python-style regular
+        # expression that has to match the *whole* CVS symbol name:
+        #IgnoreSymbolTransform(r'nightly-build-tag-.*')
+
+        # RegexpSymbolTransforms transform symbols textually using a
+        # regular expression.  The first argument is a Python regular
+        # expression pattern and the second is a replacement pattern.
+        # The pattern is matched against each symbol name.  If it
+        # matches the whole symbol name, then the symbol name is
+        # replaced with the corresponding replacement text.  The
+        # replacement can include substitution patterns (e.g., r'\1'
+        # or r'\g<name>').  Typically you will want to use raw strings
+        # (strings with a preceding 'r', like shown in the examples)
+        # for the regexp and its replacement to avoid backslash
+        # substitution within those strings.
+        #RegexpSymbolTransform(r'release-(\d+)_(\d+)',
+        #                      r'release-\1.\2'),
+        #RegexpSymbolTransform(r'release-(\d+)_(\d+)_(\d+)',
+        #                      r'release-\1.\2.\3'),
+
+        # Simple 1:1 character replacements can also be done.  The
+        # following transform, which converts backslashes into forward
+        # slashes, should usually be included:
+        ReplaceSubstringsSymbolTransform('\\','/'),
+
+        # This last rule eliminates leading, trailing, and repeated
+        # slashes within the output symbol names:
+        NormalizePathsSymbolTransform(),
+        ],
+
+    # See the definition of global_symbol_strategy_rules above for a
+    # description of this option:
+    symbol_strategy_rules=global_symbol_strategy_rules,
+
+    # Exclude paths from the conversion. Should be relative to
+    # repository path and use forward slashes:
+    #exclude_paths=['file-to-exclude.txt,v', 'dir/to/exclude'],
+    )
+
diff --git a/cvs2git.sh b/cvs2git.sh
new file mode 100755 (executable)
index 0000000..1aa357c
--- /dev/null
@@ -0,0 +1,83 @@
+#! /bin/bash
+
+svn co --username=guest --password="" http://cvs2svn.tigris.org/svn/cvs2svn/trunk cvs2svn-trunk
+
+vim jra1mw.cvs/CVSROOT/config
+#už v sync: rm -fv CVSROOT/*,v CVSROOT/.cvsignore,v
+..  cp cvs2svn-trunk/cvs2git-example.options cvs2git.options
+... vim cvs2git.options
+cvs2svn-trunk/cvs2git --options=cvs2git.options
+
+mkdir jra1mw.git
+cd jra1mw.git
+git init --shared --bare
+cat ../1blob ../2dump | git fast-import
+../cvs2svn-trunk/contrib/git-move-refs.py
+cd -
+rm -fv 1blob 2dump
+
+# ==== repairs and module moves ====
+
+#org.glite.myproxy-config      org.glite.px.myproxy-config
+#org.glite.px.myproxy-config   -       valtri  2011-02-23 15:06:56 +0000       glite-PX deployment.
+#org.glite.security.gsoap-plugin       org.glite.lbjp-common.gsoap-plugin/branch_2_1, nedávejme uměle na větev...
+#org.glite.security.gss        org.glite.lbjp-common.gss/branch_2_1
+#org.glite.security.proxyrenewal       org.glite.px.proxyrenewal
+#org.glite.yaim.myproxy        org.glite.px.myproxy-yaim
+
+# prazdne zpravy
+git log | grep -B4 'empty log message' | grep commit | cut -f2 -d' ' > revs1
+# prazdne commity
+git rev-list HEAD | while read c; do [ -n "$(git diff-tree --root $c)" ] || echo $c; done > revs2
+git filter-branch \
+       --msg-filter 'if grep -q "$GIT_COMMIT" '"$(pwd)/"revs1'; then echo "cvs2git: empty log message"; else cat; fi' \
+       --commit-filter 'if grep -q "$GIT_COMMIT" '"$(pwd)/"revs2'; then skip_commit "$@"; else git commit-tree "$@"; fi' \
+-f HEAD
+
+# edit commit message and squash
+# udělat až při hlavnim rebase
+...#git rebase -i `git show '--format=%H' ':/^\[no change - only corrected log message\]' | head -n 1`^
+
+# restructuring
+#za restructuring prohlažme 2007-11-07 16:12:07
+rm -rf org.glite.lb.server-bones org.glite.lb.proxy org.glite.lb.client-interface org.glite.lbjp-utils.db org.glite.lbjp-utils.jobid org.glite.lbjp-utils.maildir org.glite.lbjp-utils.server-bones org.glite.lbjp-utils.trio org.glite.lb-utils org.glite.lb-utils.context org.glite.lb-utils.db org.glite.lb-utils.jobid org.glite.lb-utils.server-bones org.glite.lb-utils.trio
+git commit -a -m"cvs2git: L&B restructuring"
+
+# deployment -> yaim
+rm -rf org.glite.deployment.jpis org.glite.deployment.jpps org.glite.deployment.lb
+git commit -a -m"cvs2git: deployment modules changed to yaim"
+
+# yaim L&B
+rm -rf org.glite.yaim.lb
+git commit -a -m"cvs2git: moving yaim.lb to L&B subsystem"
+
+rm -rf org.glite.myproxy-config
+git commit -a -m"cvs2git: moving MyProxy startup script to PX subsystem"
+
+rm -rf org.glite.yaim.myproxy
+git commit -a -m"cvs2git: moving MyProxy yaim to PX subsystem"
+
+rm -rf org.glite.security.proxyrenewal
+git commit -a -m"cvs2git: moving proxyrenewal to PX subsystem"
+
+rm -rf org.glite.security.gss org.glite.security.gsoap-plugin
+git commit -a -m'cvs2git: merging security modules moved to lbjp-common subsystem'
+
+# 'deployment modules changed to yaim' před 'First import'
+# 'L&B restructuring' za (!) 'Serverbones moved'
+# 'moving yaim.lb to L&B subsystem' před 'Moving org.glite.yaim.lb to L&B subsystem.'
+# 'moving MyProxy startup script to PX subsystem' před 'Move org.glite.myproxy-config to px subsystem.'
+# 'moving MyProxy yaim to PX subsystem' před 'YAIM Module for MyProxy moved here from org.glite.yaim'
+# 'moving proxyrenewal to PX subsystem' před 'Moving files to proper locations'
+# 'merging security modules moved to lbjp-common subsystem' za (byl merge) 'Modified to reflect version 2.1.5-1'
+git rebase -i `git show '--format=%H' ':/First import' org.glite.yaim.lb | head -n 1`^
+
+# pročištění (will make 'git fsck' happy)
+#asi neni potřeba:
+git reflog expire --dry-run --expire=0 --all
+git repack -ad
+git prune
+
+# go up!
+#git push -f
+
diff --git a/filter.txt b/filter.txt
new file mode 100644 (file)
index 0000000..89bc027
--- /dev/null
@@ -0,0 +1,70 @@
+/CVSROOT/***
+/org.glite.testsuites.ctb
+/org.glite.testsuites.ctb/LB/***
+/org.glite.deployment.jpis/***
+/org.glite.deployment.jpps/***
+/org.glite.deployment.lb/***
+/org.glite.jobid/***
+/org.glite.jobid.api-c/***
+/org.glite.jobid.api-cpp/***
+/org.glite.jobid.api-java/***
+/org.glite.jp/***
+/org.glite.jp.client/***
+/org.glite.jp.common/***
+/org.glite.jp.doc/***
+/org.glite.jp.index/***
+/org.glite.jp.primary/***
+/org.glite.jp.server-common/***
+/org.glite.jp.ws-interface/***
+/org.glite.lb/***
+/org.glite.lb.client/***
+/org.glite.lb.client-interface/***
+/org.glite.lb.client-java/***
+/org.glite.lb.common/***
+/org.glite.lb.doc/***
+/org.glite.lb.glite-LB/***
+/org.glite.lb.harvester/***
+/org.glite.lbjp-common/***
+/org.glite.lbjp-common.db/***
+/org.glite.lbjp-common.gsoap-plugin/***
+/org.glite.lbjp-common.gss/***
+/org.glite.lbjp-common.jp-interface/***
+/org.glite.lbjp-common.log/***
+/org.glite.lbjp-common.maildir/***
+/org.glite.lbjp-common.server-bones/***
+/org.glite.lbjp-common.trio/***
+/org.glite.lbjp-utils.db/***
+/org.glite.lbjp-utils.jobid/***
+/org.glite.lbjp-utils.maildir/***
+/org.glite.lbjp-utils.server-bones/***
+/org.glite.lbjp-utils.trio/***
+/org.glite.lb.logger/***
+/org.glite.lb.logger-msg/***
+/org.glite.lb.proxy/***
+/org.glite.lb.server/***
+/org.glite.lb.server-bones/***
+/org.glite.lb.state-machine/***
+/org.glite.lb.types/***
+/org.glite.lb.utils/***
+/org.glite.lb-utils/***
+/org.glite.lb-utils.context/***
+/org.glite.lb-utils.db/***
+/org.glite.lb-utils.jobid/***
+/org.glite.lb-utils.server-bones/***
+/org.glite.lb-utils.trio/***
+/org.glite.lb.ws-interface/***
+/org.glite.lb.ws-test/***
+/org.glite.lb.yaim/***
+/org.glite.myproxy-config/***
+/org.glite.px/***
+/org.glite.px.glite-PX/***
+/org.glite.px.myproxy-config/***
+/org.glite.px.myproxy-yaim/***
+/org.glite.px.proxyrenewal/***
+/org.glite.security.gsoap-plugin/***
+/org.glite.security.gss/***
+/org.glite.security.proxyrenewal/***
+/org.glite.testsuite.ctb/***
+/org.glite.yaim.lb/***
+/org.glite.yaim.myproxy/***
+/org.gridsite.core/***
diff --git a/git.wiki b/git.wiki
new file mode 100644 (file)
index 0000000..d947dd6
--- /dev/null
+++ b/git.wiki
@@ -0,0 +1,123 @@
+= Basics =
+
+# init
+git init
+
+# import
+git add .
+git commit
+
+# patch -p1 + ci
+git apply
+
+git status
+
+# revert
+git checkout PATH
+
+# commit
+#git commit FILES
+git commit -a
+
+# oprava posledního komitu
+git commit --amend
+
+# zrušení posledního komitu (bez změn souborů)
+git reset HEAD^
+
+# zobrazení
+git show REV:PATH
+
+
+= Braches =
+
+# tagging
+git tag -a TAG_NAME
+
+# tags listing
+git tag -l
+
+# new (local) branch
+git btanch BRANCH_NAME
+# switch to (local) branch
+git checkout BRANCH_NAME
+# branches listing
+git branch
+
+# merge (from to-be-merched branch)
+git merge TARGET_BRANCH
+# use one patch
+git cherry-pick REVISION
+
+
+= Remote =
+
+# tracking remote changes
+git checkout --track -b BRANCH_NAME_LOCAL origin/BRANCH_NAME_ORIGIN
+
+#?# show remote branches
+#?git remote show REMOTE
+
+# fetch+look+merge (= 'git pull')
+git fetch
+#git log origin
+git log HEAD..origin
+git merge origin
+
+# "real commit" to remote repository
+git push REMOTE
+
+= cvs2git =
+
+mkdir pokus.git
+cd pokus.git
+git --bare init --shared
+# cd CVS, set CVSROOT
+export CVSROOT=
+...
+cat > ../authors.txt <<EOF
+valtri=František Dvořák <valtri@civ.zcu.cz>
+EOF
+#git cvsimport -C ../pokus.git -i -m -a -A ../authors.txt
+git cvsimport -d /home/valtri/jra1mw.cvs -i -m -a -A ../authors.txt jra1mw
+
+= Tricks =
+
+== Remove empty commits ==
+ git rev-list HEAD | while read c; do [ -n "$(git diff-tree --root $c)" ] \
+   || echo $c; done > revs
+ git filter-branch --commit-filter '
+   if grep -q "$GIT_COMMIT" '"$(pwd)/"revs';
+   then
+     skip_commit "$@";
+   else
+     git commit-tree "$@";
+   fi' HEAD
+
+== Fix empty log messages ==
+ git log | grep -B4 'empty log message' | grep commit | cut -f2 -d' ' > revs
+ git filter-branch --msg-filter '
+   if grep -q "$GIT_COMMIT" '"$(pwd)/"revs';
+   then
+     echo "(cvs2git migration: empty log message)"
+   else
+     cat
+   fi ' HEAD
+
+== Remove subdirectory from history ==
+
+ git filter-branch --tree-filter 'rm -rf org.glite.px.myproxy-config/org.glite.security.voms-api/.git' HEAD
+ git filter-branch --tree-filter 'rm -rf org.glite.px.myproxy-config/org.glite.security.voms/.git' HEAD
+
+== Changing email address ==
+
+ git filter-branch --commit-filter '
+        if [ "$GIT_AUTHOR_EMAIL" = "schacon@localhost" ];
+        then
+                GIT_AUTHOR_NAME="Scott Chacon";
+                GIT_AUTHOR_EMAIL="schacon@example.com";
+                git commit-tree "$@";
+        else
+                git commit-tree "$@";
+        fi' HEAD
diff --git a/sync.sh b/sync.sh
new file mode 100755 (executable)
index 0000000..716346c
--- /dev/null
+++ b/sync.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+PORT=10022
+RSH="ssh -p $PORT -o StrictHostKeyChecking=no"
+RCVSDIR=/net/jra1mw.cvs.cern.ch/local/projects/jra1mw/rep
+
+. $HOME/ssh-agent-info.sh
+ssh -f lxplus.cern.ch -L $PORT:lxcvsfs5.cern.ch:22 'echo "logged in"; while true; do sleep 1; done'&
+sshpid=$!
+echo "Press ENTER after logging in..."
+read
+
+mkdir -p jra1mw.cvs >/dev/null || true
+cd jra1mw.cvs
+$RSH localhost "cd $RCVSDIR; ls -1 | grep ^org."
+rsync --rsh="$RSH" --archive --verbose --exclude=/CVSROOT/JAVA_TOOLS/\*\*\* --exclude=/CVSROOT/history --exclude=/CVSROOT/\*,v --include-from=../filter.txt --exclude=\*\* localhost:$RCVSDIR/ . 2>&1 | tee ../sync.log
+rm -rf org.glite.px.myproxy-config/org.glite.security.voms-api/.git
+rm -rf org.glite.px.myproxy-config/org.glite.security.voms-api-cpp/.git
+cd -
+
+pids="$sshpid `ps xafw | grep 'ssh -f lxplus.cern.ch' | sed 's/^ *//' | cut -f 1 -d' ' | tr '\n' ' '`"
+kill $pids 2>/dev/null
+sleep 1
+kill -9 $pids 2>/dev/null