rpms/cvs2svn/devel cvs2svn.1, NONE, 1.1 .cvsignore, 1.9, 1.10 cvs2svn.spec, 1.16, 1.17 sources, 1.9, 1.10

Miloš Jakubíček mjakubicek at fedoraproject.org
Mon Dec 14 21:59:18 UTC 2009


Author: mjakubicek

Update of /cvs/pkgs/rpms/cvs2svn/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20988

Modified Files:
	.cvsignore cvs2svn.spec sources 
Added Files:
	cvs2svn.1 
Log Message:
- Ship also cvs2git from a 2.3.0 prerelease, split common files into a cvs2commons subpackage




--- NEW FILE cvs2svn.1 ---
.\" Process this file with
.\" groff -man -Tascii cvs2svn.1
.TH CVS2SVN "1" "Oct 24, 2004" "Subversion" "User Commands"
.SH NAME
cvs2svn \- convert a cvs repository into a subversion repository
.SH SYNOPSIS
.B cvs2svn
[\fIOPTION\fR]... \fIOUTPUT-OPTION CVS-REPOS-PATH\fR
.br
.B cvs2svn
[\fIOPTION\fR]... \fI--options=PATH\fR
.SH DESCRIPTION
Create a new Subversion repository based on the version history stored in a
CVS repository. Each CVS commit will be mirrored in the Subversion
repository, including such information as date of commit and id of the
committer.
.P
\fICVS-REPOS-PATH\fR is the filesystem path of the part of the CVS
repository that you want to convert.  It is not possible to convert a
CVS repository to which you only have remote access; see the FAQ for
more information.  This path doesn't have to be the top level
directory of a CVS repository; it can point at a project within a
repository, in which case only that project will be converted.  This
path or one of its parent directories has to contain a subdirectory
called CVSROOT (though the CVSROOT directory can be empty).
.P
Multiple CVS repositories can be converted into a single Subversion
repository in a single run of cvs2svn, but only by using an
\fB--options\fR file.
.SH "OPTIONS FILE"
.TP
\fB--options\fR=\fIpath\fR
Read the conversion options from \fIpath\fR instead of from the
command line.  This option allows far more conversion flexibility than
can be achieved using the command-line alone.  See the documentation
for more information.  Only the following command-line options are
allowed in combination with \fB--options\fR: \fB-h\fR/\fB--help\fR,
\fB--help-passes\fR, \fB--version\fR, \fB-v\fR/\fB--verbose\fR,
\fB-q\fR/\fB--quiet\fR, \fB-p\fR/\fB--pass\fR/\fB--passes\fR,
\fB--dry-run\fR, and \fB--profile\fR.
.SH "OUTPUT OPTIONS"
.TP
\fB-s\fR, \fB--svnrepos\fR \fIpath\fR
Write the output of the conversion into a Subversion repository
located at \fIpath\fR.  This option causes a new Subversion repository
to be created at \fIpath\fR unless the \fB--existing-svnrepos\fR
option is also used.
.TP
\fB--existing-svnrepos\fR
Load the converted CVS repository into an existing Subversion
repository, instead of creating a new repository.  (This option should
be used in combination with \fB-s\fR/\fB--svnrepos\fR.)  The
repository must either be empty or contain no paths that overlap with
those that will result from the conversion.  Please note that you need
write permission for the repository files.
.TP
\fB--fs-type\fR
Pass \fI--fs-type\fR=\fItype\fR to "svnadmin create" when creating a
new repository.
.TP
\fB--bdb-txn-nosync\fR
Pass \fI--bdb-txn-nosync\fR to "svnadmin create" when creating a new
BDB-style Subversion repository.
.TP
\fB--create-option\fR=\fIopt\fR
Pass \fIopt\fR to "svnadmin create" when creating a new Subversion
repository (can be specified multiple times to pass multiple options).
.TP
\fB--dumpfile\fR=\fIpath\fR
Just produce a dumpfile; don't commit to an SVN repository.  Write the
dumpfile to \fIpath\fR.
.TP
\fB--dry-run\fR
Do not create a repository or a dumpfile; just print the details of what
cvs2svn would do if it were really converting your repository.
.SH "CONVERSION OPTIONS"
.TP
\fB--trunk-only\fR
Convert only trunk commits, not tags nor branches.
.TP
\fB--trunk\fR=\fIpath\fR
Set the top-level path to use for trunk in the Subversion repository.
The default is \fItrunk\fR.
.TP
\fB--branches\fR=\fIpath\fR
Set the top-level path to use for branches in the Subversion
repository.  The default is \fIbranches\fR.
.TP
\fB--tags\fR=\fIpath\fR
Set the top-level path to use for tags in the Subversion repository.
The default is \fItags\fR.
.TP
\fB--no-prune\fR
When all files are deleted from a directory in the Subversion
repository, don't delete the empty directory (the default is to delete
any empty directories.
.TP
\fB--encoding\fR=\fIencoding\fR
Use \fIencoding\fR as the encoding for filenames, log messages, and
author names in the CVS repos.  This option may be specified
multiple times, in which case the encodings are tried in order
until one succeeds.  Default: ascii.  See
http://docs.python.org/lib/standard-encodings.html for a list of other
standard encodings.
.TP
\fB--fallback-encoding\fR=\fIencoding\fR
If none of the encodings specified with \fB--encoding\fR succeed in
decoding an author name or log message, then fall back to using
\fIencoding\fR in lossy 'replace' mode.  Use of this option may cause
information to be lost, but at least it allows the conversion to run
to completion.  This option only affects the encoding of log messages
and author names; there is no fallback encoding for filenames.  (By
using an \fB--options\fR file, it is possible to specify a fallback
encoding for filenames.)  Default: disabled.
.TP
\fB--symbol-transform\fR=\fIpattern\fR:\fIreplacement\fR
Transform RCS/CVS symbol names before entering them into Subversion.
\fIpattern\fR is a Python regexp pattern that is matches against the
entire symbol name; \fIreplacement\fR is a replacement using Python's
regexp reference syntax.  You may specify any number of these options;
they will be applied in the order given on the command line.
.TP
\fB--symbol-hints\fR=\fIpath\fR
Read symbol conversion hints from \fIpath\fR.  The format of
\fIpath\fR is the same as the format output by
\fB--write-symbol-info\fR, namely a text file with four
whitespace-separated columns: \fIproject-id\fR, \fIsymbol\fR,
\fIconversion\fR, and \fIparent-lod-name\fR.  \fIproject-id\fR is
the numerical ID of the project to which the symbol belongs, counting
from 0.  \fIproject-id\fR can be set to '.' if project-specificity is
not needed.  \fIsymbol-name\fR is the name of the symbol being
specified.  \fIconversion\fR specifies how the symbol should be
converted, and can be one of the values 'branch', 'tag', or 'exclude'.
If \fIconversion\fR is '.', then this rule does not affect how the
symbol is converted.  \fIparent-lod-name\fR is the name of the symbol
from which this symbol should sprout, or '.trunk.' if the symbol
should sprout from trunk.  If \fIparent-lod-name\fR is omitted or '.',
then this rule does not affect the preferred parent of this symbol.
The file may contain blank lines or comment lines (lines whose first
non-whitespace character is '#').
.TP
\fB--force-branch\fR=\fIregexp\fR
Force symbols whose names match \fIregexp\fR to be branches.
\fIregexp\fR must match the whole symbol name.
.TP
\fB--force-tag\fR=\fIregexp\fR
Force symbols whose names match \fIregexp\fR to be tags.  \fIregexp\fR
must match the whole symbol name.
.TP
\fB--exclude\fR=\fIregexp\fR
Exclude branches and tags whose names match \fIregexp\fR from the
conversion.  \fIregexp\fR must match the whole symbol name.
.TP
\fB--keep-trivial-imports\fR
Do not exclude branches that were only used for a single import.  (By
default such branches are excluded because they are usually created by
the inappropriate use of \fBcvs import\fR.)
.TP
\fB--symbol-default\fR=\fIopt\fR
Specify how to convert ambiguous symbols (those that appear in the CVS
archive as both branches and tags).  \fIopt\fR must be `heuristic'
(decide how to treat each ambiguous symbol based on whether it was
used more often as a branch/tag in CVS), `strict' (no default; every
ambiguous symbol has to be resolved manually using
\fB--force-branch\fR, \fB--force-tag\fR, or \fB--exclude\fR), `branch'
(treat every ambiguous symbol as a branch), or `tag' (treat every
ambiguous symbol as a tag).  The default is `heuristic'.
.TP
\fB--keep-cvsignore\fR
Include \fI.cvsignore\fR files in the output.  (Normally they are
unneeded because cvs2svn sets the corresponding \fIsvn:ignore\fR
properties.)
.TP
\fB--retain-conflicting-attic-files\fR
If a file appears both inside an outside of the CVS attic, retain the
attic version in an SVN subdirectory called `Attic'.  (Normally this
situation is treated as a fatal error.)
.TP
\fB--username\fR=\fIname\fR
Set the default username to \fIname\fR when cvs2svn needs to generate
a commit for which CVS does not record the original username.  This
happens when a branch or tag is created.  The default is to use no
author at all for such commits.
.TP
\fB--cvs-revnums\fR
Record CVS revision numbers as file properties in the Subversion
repository.  (Note that unless it is removed explicitly, the last CVS
revision number will remain associated with the file even after the
file is changed within Subversion.)
.TP
\fB--mime-types\fR=\fIfile\fR
Specify an apache-style mime.types \fIfile\fR for setting
svn:mime-type.
.TP
\fB--eol-from-mime-type\fR
For files that don't have the kb expansion mode but have a known mime
type, set the eol-style based on the mime type.  For such files, set
svn:eol-style to "native" if the mime type begins with "text/", and
leave it unset (i.e., no EOL translation) otherwise.  Files with
unknown mime types are not affected by this option.  This option has
no effect unless the \fB--mime-types\fR option is also specified.
.TP
\fB--auto-props\fR=\fIfile\fR
Specify a file in the format of Subversion's config file, whose
[auto-props] section can be used to set arbitrary properties on files
in the Subversion repository based on their filenames.  (The
[auto-props] section header must be present; other sections of the
config file, including the enable-auto-props setting, are ignored.)
Filenames are matched to the filename patterns case-insensitively.
.TP
\fB--default-eol\fR=\fIstyle\fR
Set svn:eol-style to \fIstyle\fR for files that don't have the CVS
`kb' expansion mode and whose end-of-line translation mode hasn't been
determined by one of the other options.  \fIstyle\fR must be `binary'
(default), `native', `CRLF', `LF', or `CR'.
.TP
\fB--keywords-off\fR
By default, cvs2svn sets svn:keywords on CVS files to "author id date"
if the mode of the RCS file in question is either kv, kvl or unset.
If you use the --keywords-off switch, cvs2svn will not set
svn:keywords for any file.  While this will not touch the keywords in
the contents of your files, Subversion will not expand them.
.SH "EXTRACTION OPTIONS"
.TP
\fB--use-internal-co\fR
Use internal code to extract revision contents.  This is up to 50%
faster than using \fB--use-rcs\fR, but needs a lot of disk space:
Roughly the size of your CVS repository plus the peak size of a
complete checkout of the repository with all branches that existed and
still had commits pending at a given time.  This option is the
default.
.TP
\fB--use-rcs\fR
Use RCS 'co' to extract revision contents.
.TP
\fB--use-cvs\fR
Use CVS to extract revision contents (only use this if having
problems with \fB--use-internal-co\fR or \fB--use-rcs\fR, as those
options are much faster).
.SH "ENVIRONMENT OPTIONS"
.TP
\fB--tmpdir\fR=\fIpath\fR
Set the \fIpath\fR to use for temporary data.  Default is a directory
called \fIcvs2svn-tmp\fR under the current directory.
.TP
\fB--svnadmin\fR=\fIpath\fR
Path to the \fIsvnadmin\fR program.  (\fIsvnadmin\fR is needed when
the \fB-s\fR/\fB--svnrepos\fR output option is used.)
.TP
\fB--co\fR=\fIpath\fR
Path to the \fIco\fR program.  (\fIco\fR is needed if the
\fB--use-rcs\fR option is used.)
.TP
\fB--cvs\fR=\fIpath\fR
Path to the \fIcvs\fR program.  (\fIcvs\fR is needed if the
\fB--use-cvs\fR option is used.)
.TP
\fB--sort\fR=\fIpath\fR
Path to the GNU \fIsort\fR program.  (cvs2svn requires GNU sort.)
.SH "PARTIAL CONVERSIONS"
.TP
\fB-p\fR, \fB--pass\fR \fIpass\fR
Execute only pass \fIpass\fR of the conversion.  \fIpass\fR can be
specified by name or by number (see \fB--help-passes\fR).
.TP
\fB-p\fR, \fB--passes\fR [\fIstart\fR]:[\fIend\fR]
Execute passes \fIstart\fR through \fIend\fR of the conversion
(inclusive).  \fIstart\fR and \fIend\fR can be specified by name or by
number (see \fB--help-passes\fR).  If \fIstart\fR or \fIend\fR is
missing, it defaults to the first or last pass, respectively.  For
this to work the earlier passes must have been completed before on the
same CVS repository, and the generated data files must be in the
temporary directory (see \fB--tmpdir\fR).
.SH "INFORMATION OPTIONS"
.TP
\fB--version\fR
Print the version number.
.TP
\fB-h\fR, \fB--help\fR
Print the usage message and exit with success.
.TP
\fB--help-passes\fR
Print the numbers and names of the conversion passes and exit with
success.
.TP
\fB-v\fR, \fB--verbose\fR
Print more information while running.  This option may be specified
twice to output voluminous debugging information.
.TP
\fB-q\fR, \fB--quiet\fR
Print less information while running.  This option may be specified
twice to suppress all non-error output.
.TP
\fB--write-symbol-info\fR=\fIpath\fR
Write symbol statistics and information about how symbols were
converted to \fIpath\fR during CollateSymbolsPass.
.TP
\fB--skip-cleanup\fR
Prevent the deletion of temporary files.
.TP
\fB--profile\fR
Profile with 'hotshot' (into file \fIcvs2svn.hotshot\fR).
.SH FILES
A directory called \fIcvs2svn-tmp\fR (or the directory specified by
\fB--tmpdir\fR) is used as scratch space for temporary data files.
.SH AUTHORS
Main authors are:
.br
C. Michael Pilato <cmpilato at collab.net>
.br
Greg Stein <gstein at lyra.org>
.br
Branko Čibej <brane at xbc.nu>
.br
Blair Zajac <blair at orcaware.com>
.br
Max Bowsher <maxb at ukf.net>
.br
Brian Fitzpatrick <fitz at red-bean.com>
.br
Tobias Ringström <tobias at ringstrom.mine.nu>
.br
Karl Fogel <kfogel at collab.net>
.br
Erik Hülsmann <e.huelsmann at gmx.net>
.br
David Summers <david at summersoft.fay.ar.us>
.br
Michael Haggerty <mhagger at alum.mit.edu>
.PP
Manpage was written for the Debian GNU/Linux system by
Laszlo 'GCS' Boszormenyi <gcs at lsc.hu> (but may be used by others).
.SH SEE ALSO
cvs(1), svn(1), svnadmin(1)


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/cvs2svn/devel/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- .cvsignore	30 Dec 2008 02:01:54 -0000	1.9
+++ .cvsignore	14 Dec 2009 21:59:18 -0000	1.10
@@ -1 +1 @@
-cvs2svn-2.2.0.tar.gz
+cvs2svn-trunk.tar.xz


Index: cvs2svn.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cvs2svn/devel/cvs2svn.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- cvs2svn.spec	24 Jul 2009 19:51:07 -0000	1.16
+++ cvs2svn.spec	14 Dec 2009 21:59:18 -0000	1.17
@@ -1,29 +1,78 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           cvs2svn
-Version:        2.2.0
-Release:        3%{?dist}
+Version:        2.3.0
+Release:        0.1.r4998svn%{?dist}
 Summary:        CVS to Subversion Repository Converter
 
 Group:          Development/Tools
 License:        BSD
 URL:            http://cvs2svn.tigris.org/
-Source0:        http://cvs2svn.tigris.org/files/documents/1462/44372/cvs2svn-2.2.0.tar.gz
+# The sources tarball has been generated from upstream SVN repository:
+# svn co --username=guest http://cvs2svn.tigris.org/svn/cvs2svn/trunk cvs2svn-trunk
+# (use blank password)
+Source0:        cvs2svn-trunk.tar.xz
+# Man page not in repository (but present in 2.2.0 tarball):
+Source1:        cvs2svn.1
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:      noarch
 BuildRequires:  python-devel
-Requires:       cvs, rcs, subversion
-
+Requires:       subversion
+Requires:       cvs2commons
 
 %description
 cvs2svn is a Python script that converts a CVS repository to a 
 Subversion repository. It is designed for one-time conversions, not for 
 repeated synchronizations between CVS and Subversion.
 
+%package -n cvs2commons
+Summary:        Common files for CVS to Subversion and Git Repository Converter
+Requires:       cvs, rcs
+
+%description -n cvs2commons
+This package contains files common for cvs2svn and cvs2git (Python scripts that
+convert a CVS repository to a Subversion and Git repository).
+
+%package -n cvs2git
+Summary:        CVS to Git Repository Converter
+# earlier versions of git contain a bug in "git fast-import" which makes this package unusable:
+Requires:       git >= 1.5.4.4
+Requires:       cvs2commons
+
+
+%description -n cvs2git
+cvs2git is a Python script that converts a CVS repository to a 
+Git repository. It is designed for one-time conversions, not for 
+repeated synchronizations between CVS and Git.
+
+#
+# FOR FUTURE WORK WHEN BZR-FASTIMPORT WILL BE PACKAGED
+#
+#%package -n cvs2bzr
+#Requires:      bzr >= 1.13
+#Requires:      bzr-fastimport
+#Requires:      cvs2commons
+#%description -n cvs2bzr
+#cvs2bzr is a Python script that converts a CVS repository to a 
+#Bzr repository. It is designed for one-time conversions, not for 
+#repeated synchronizations between CVS and Bzr.
+
+#
+# EXPERIMENTAL, NOT INSTALLED BY DEFAULT => WE DO NOT SHIP IT BY NOW
+#
+#%package -n cvs2hg
+#Summary:        CVS to Subversion, Git, Bzr or Mercurial Repository Converter
+#Requires:      mercurial
+#Requires:      cvs2commons
+#
+#%description -n cvs2hg
+#cvs2bzr is a Python script that converts a CVS repository to a 
+#Mercurial repository. It is designed for one-time conversions, not for 
+#repeated synchronizations between CVS and Mercurial.
 
 %prep
-%setup -q
+%setup -q -n %{name}-trunk
 
 
 %build
@@ -34,23 +83,43 @@ repeated synchronizations between CVS an
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 mkdir -p -m 0755 $RPM_BUILD_ROOT%{_mandir}/man1
-install -p -m 0644 *.1 $RPM_BUILD_ROOT%{_mandir}/man1/
-
+install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/
+rm -f $RPM_BUILD_ROOT%{_bindir}/cvs2bzr
+chmod a+x $RPM_BUILD_ROOT%{python_sitelib}/%{name}_rcsparse/{run-tests.py,parse_rcs_file.py}
+chmod a+x $RPM_BUILD_ROOT%{python_sitelib}/%{name}_lib/{main.py,version.py}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
+%files -n cvs2commons
+%defattr(-,root,root,-)
+%doc BUGS CHANGES COMMITTERS COPYING HACKING README
+%{python_sitelib}/*
+
 %files
 %defattr(-,root,root,-)
-%doc BUGS CHANGES COMMITTERS COPYING HACKING README www/*.html
-%doc cvs2svn-example.options
-%{_bindir}/*
+%doc cvs2svn-example.options www/cvs2svn.html
 %{_mandir}/man?/*
-%{python_sitelib}/*
+%{_bindir}/cvs2svn
+
+%files -n cvs2git
+%defattr(-,root,root,-)
+%doc cvs2git-example.options www/cvs2git.html
+%{_bindir}/cvs2git
 
+#%files -n cvs2bzr
+#%doc cvs2bzr-example.options www/cvs2bzr.html
+#%{_bindir}/cvs2hg
+
+#%files -n cvs2hg
+#%doc cvs2hg-example.options
+#%{_bindir}/cvs2hg
 
 %changelog
+* Mon Dec 14 2009 Milos Jakubicek <xjakub at fi.muni.cz> - 2.3.0-0.1.r4998svn
+- Ship also cvs2git from a 2.3.0 prerelease, split common files into a cvs2commons subpackage
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/cvs2svn/devel/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- sources	30 Dec 2008 02:01:54 -0000	1.9
+++ sources	14 Dec 2009 21:59:18 -0000	1.10
@@ -1 +1 @@
-466b757fdef5378a46bba4ceefd047a4  cvs2svn-2.2.0.tar.gz
+26ba0403a98d81b471e06179d598581c  cvs2svn-trunk.tar.xz




More information about the fedora-extras-commits mailing list