--- cvs2svn-0.0.1158.orig/debian/control +++ cvs2svn-0.0.1158/debian/control @@ -0,0 +1,18 @@ +Source: cvs2svn +Section: devel +Priority: optional +Maintainer: László Böszörményi (GCS) +Build-Depends-Indep: debhelper (>> 4.0.0), python2.3, rcs, subversion, locales +Standards-Version: 3.6.1 + +Package: cvs2svn +Architecture: all +Depends: python2.3, subversion (>= 1.0.1), rcs, ${python:Depends} +Recommends: mime-support +Description: Convert a cvs repository to a subversion repository + Tools in this package are not "1.0 quality" yet. While cvs2svn has + successfully converted many repositories (including their branches and + tags), for others it has either failed to complete the conversion, or + converted the data in an unexpected or subtly wrong way. Be sure to use + the verify-cvs2svn script for checking the result - but also note it does + not fully verify every aspect of history. --- cvs2svn-0.0.1158.orig/debian/rules +++ cvs2svn-0.0.1158/debian/rules @@ -0,0 +1,72 @@ +#!/usr/bin/make -f + +export DH_COMPAT=4 + +BUILDDIR=$(CURDIR)/debian/cvs2svn + +PYTHON_VER:=$(shell dpkg -l python | tail -1 | \ + sed -e 's/.*python[ ]*\([^ ]\{3\}\).*/\1/') + +PYTHON_DEBDIR=$(BUILDDIR)/usr/lib/python$(PYTHON_VER)/site-packages/ + +# stable and unstable/testing have different versions of python. This +# allows us to generate proper packages with both versions. +debian/control: debian/control.in + rm -f debian/control + sed -e 's/@PYTHON_VER@/$(PYTHON_VER)/g' \ + < debian/control.in \ + > debian/control + chmod 0444 debian/control + +build: build-stamp +build-stamp: + dh_testdir + + # run the built in test suite, but first be sure to have + # en_US locale for test 27 + install -d $(CURDIR)/debian/locale/ + localedef -i en_US -f ISO-8859-1 $(CURDIR)/debian/locale/en_US + LOCPATH="$(CURDIR)/debian/locale" LC_ALL="en_US" $(CURDIR)/run-tests.py + dh_installdirs + # install rcsparse modules + install -d $(PYTHON_DEBDIR)/rcsparse/ + install -m0644 rcsparse/*.py $(PYTHON_DEBDIR)/rcsparse/ + # change interpreter to the exact Python found + sed -e 's;#!/usr/bin/env python;#!/usr/bin/env python$(PYTHON_VER);' \ + < $(CURDIR)/cvs2svn.py > $(BUILDDIR)/usr/bin/cvs2svn + sed -e 's;#!/usr/bin/env python;#!/usr/bin/env python$(PYTHON_VER);' \ + < $(CURDIR)/verify-cvs2svn.py \ + > $(BUILDDIR)/usr/bin/verify-cvs2svn + # install documentation files as well + install -m0644 $(CURDIR)/debian/cvs2svn.1 \ + $(CURDIR)/debian/verify-cvs2svn.1 \ + $(BUILDDIR)/usr/share/man/man1/ +# install -m0644 $(CURDIR)/README \ +# $(BUILDDIR)/usr/share/doc/cvs2svn + + touch $@ + +clean: debian/control + dh_testdir + # clean up after tests + rm -rf $(CURDIR)/tmp/ + rm -f $(CURDIR)/svntest/*.pyc $(CURDIR)/rcsparse/*.pyc + + rm -rf $(CURDIR)/debian/locale/ + rm -f build-stamp + dh_clean + +binary-indep: build + dh_testdir + dh_installdocs -i README + dh_installchangelogs -i + dh_python -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary: binary-indep +.PHONY: build clean binary binary-indep --- cvs2svn-0.0.1158.orig/debian/verify-cvs2svn.1 +++ cvs2svn-0.0.1158/debian/verify-cvs2svn.1 @@ -0,0 +1,40 @@ +.TH verify-cvs2svn 1 "April 12, 2004" "Subversion" "User Commands" +.SH NAME +verify-cvs2svn \- verify the output of cvs2svn +.SH SYNOPSIS +.TP +\fBverify-cvs2svn\fP [\fB--branch\fP=\fIbranch\fP] [\fB--diff\fP] [\fB--tag\fP=\fItag\fP] [\fB--tempdir\fP=\fIpath\fP] [\fB--trunk\fP] \fIcvs-repos-path\fP \fIsvn-repos-path\fP +.SH DESCRIPTION +Verifies that a repository converted by cvs2svn is correct. At the moment +it verifies the contents of the HEAD revision for trunk and all tags and +branches. +.PP +\fIcvs-repos-path\fP +is a project's toplevel directory inside your CVS repository. +.br +\fIsvn-repos-path\fP +is the SVN toplevel directory where you converted your repository with +the cvs2svn script. +.TP +\fB--branch\fP=\fIbranch\fP +Verify contents of the branch \fIbranch\fP only. +.TP +\fB--diff\fP +Run diff on differing files +.TP +\fB--tag\fP=\fItag\fP +Verify contents of the \fItag\fP only. +.TP +\fB--tempdir\fP=\fIpath\fP +A \fIpath\fP to store temporary files. +.TP +\fB--trunk\fP +Verify contents of trunk only. +.SH LIMITATIONS +It needs more comments and error checking, but it works if you are careful +with it. :-) +.SH SEE ALSO +cvs(1), svn(1), svnadmin(1), cvs2svn(1) +.SH AUTHOR +This manpage was written for the Debian GNU/Linux system by Laszlo 'GCS' +Boszormenyi (but may be used by others). --- cvs2svn-0.0.1158.orig/debian/changelog +++ cvs2svn-0.0.1158/debian/changelog @@ -0,0 +1,49 @@ +cvs2svn (0.0.1158-1) unstable; urgency=low + + * New upstream version, fixes minor bugs + * Wrap package description at column 76 instead of 79 + + -- László Böszörményi (GCS) Mon, 21 Jun 2004 16:54:08 +0000 + +cvs2svn (0.0.957-1) unstable; urgency=low + + * New upstream release. + * Add rcs to Build-Depends, thanks to Daniel Schepler + again (closes: #248215). + * Small packaging cleanup, use Build-Depends-Indep instead of Build-Depends + and others. + + -- László Böszörményi (GCS) Mon, 10 May 2004 17:07:51 +0000 + +cvs2svn (0.0.934-1) unstable; urgency=low + + * New upstream release. + * Change the locale setup for package building time self-test. Reported + and solution provided by Daniel Schepler , + thanks! Closes: #246490. + + -- László Böszörményi (GCS) Tue, 27 Apr 2004 19:46:23 +0000 + +cvs2svn (0.0.923-1) unstable; urgency=low + + * New upstream release + * Update manpage to reflect new upstream possibilities with --force-branch + and --force-tag switches; also fix some oddities + * Recommend mime-support as cvs2svn can make use of it + + -- László Böszörményi (GCS) Sat, 17 Apr 2004 18:21:50 +0000 + +cvs2svn (0.0.911-1) unstable; urgency=low + + * New upstream release + * Big update of manpages (by me, closes: #232933, #232322) + * Install upstream README, and minor packaging changes + + -- László Böszörményi (GCS) Sat, 3 Apr 2004 15:05:22 +0000 + +cvs2svn (0.0.838-1) unstable; urgency=low + + * Initial release (closes: #237934) + * Wrote man page for verify-cvs2svn + + -- László Böszörményi (GCS) Sun, 7 Mar 2004 16:58:17 +0000 --- cvs2svn-0.0.1158.orig/debian/dirs +++ cvs2svn-0.0.1158/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/doc/cvs2svn +usr/share/man/man1 --- cvs2svn-0.0.1158.orig/debian/control.in +++ cvs2svn-0.0.1158/debian/control.in @@ -0,0 +1,18 @@ +Source: cvs2svn +Section: devel +Priority: optional +Maintainer: László Böszörményi (GCS) +Build-Depends-Indep: debhelper (>> 4.0.0), python@PYTHON_VER@, rcs, subversion, locales +Standards-Version: 3.6.1 + +Package: cvs2svn +Architecture: all +Depends: python@PYTHON_VER@, subversion (>= 1.0.1), rcs, ${python:Depends} +Recommends: mime-support +Description: Convert a cvs repository to a subversion repository + Tools in this package are not "1.0 quality" yet. While cvs2svn has + successfully converted many repositories (including their branches and + tags), for others it has either failed to complete the conversion, or + converted the data in an unexpected or subtly wrong way. Be sure to use + the verify-cvs2svn script for checking the result - but also note it does + not fully verify every aspect of history. --- cvs2svn-0.0.1158.orig/debian/copyright +++ cvs2svn-0.0.1158/debian/copyright @@ -0,0 +1,63 @@ +This package was debianized by László Böszörményi (GCS) on +Mon Mar 15 14:01:47 CET 2004 + +It was checked out from: http://svn.collab.net/repos/cvs2svn/trunk (r829) + +Upstream Authors: +Tobias Ringstrom +C. Michael Pilato +Brian Fitzpatrick +Karl Fogel +Max Bowsher + +Copyright: +This is version 1 of this license. It is also available online at +http://subversion.tigris.org/license-1.html. If newer versions of +this license are posted there (the same URL, but with the version +number incremented: .../license-2.html, .../license-3.html, and so +on), you may use a newer version instead, at your option. + +==================================================================== +Copyright (c) 2000-2004 CollabNet. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The end-user documentation included with the redistribution, if +any, must include the following acknowledgment: "This product includes +software developed by CollabNet (http://www.Collab.Net/)." +Alternately, this acknowledgment may appear in the software itself, if +and wherever such third-party acknowledgments normally appear. + +4. The hosted project names must not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact info@collab.net. + +5. Products derived from this software may not use the "Tigris" name +nor may "Tigris" appear in their names without prior written +permission of CollabNet. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL COLLABNET OR ITS CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +==================================================================== + +This software consists of voluntary contributions made by many +individuals on behalf of CollabNet. + --- cvs2svn-0.0.1158.orig/debian/cvs2svn.1 +++ cvs2svn-0.0.1158/debian/cvs2svn.1 @@ -0,0 +1,148 @@ +.Dd April 12, 2004 +.Os Subversion +.Dt CVS2SVN 1 "User Commands" +.Sh NAME +.Nm cvs2svn +.Nd convert a cvs repository into a subversion repository +.Sh SYNOPSIS +.Nm +.Op Fl v +.Op Fl s Ar svn-repos-path +.Op Fl -existing-svnrepos +.Op Fl p Ar start:end +.Op Fl -dump-only +.Op Fl -dumpfile Ns = Ns Ar path +.Op Fl -svnadmin Ns = Ns Ar path +.Op Fl -trunk-only +.Op Fl -trunk Ns = Ns Ar path +.Op Fl -branches Ns = Ns Ar path +.Op Fl -tags Ns = Ns Ar path +.Op Fl -no-prune +.Op Fl -encoding Ns = Ns Ar encoding +.Op Fl -force-branch Ns = Ns Ar name +.Op Fl -force-tag Ns = Ns Ar name +.Op Fl -username Ns = Ns Ar name +.Op Fl -skip-cleanup +.Op Fl -bdb-txn-nosync +.Op Fl -cvs-revnums +.Op Fl -mime-types Ns = Ns Ar file +.Op Fl -set-eol-style +.Ar cvs-repos-path +.Sh DESCRIPTION +.Nm +can be used to 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. +.Pp +.Ar cvs-repos-path +is a project's toplevel directory inside your CVS repository, +everything below it will be mirrored. +You can give a CVS repository's root path, then all contained projects +as well as the administrative directory +.Pa CVSROOT +will be converted over, which may not be what you want. +.Bl -tag +.It Fl v +Verbose, print more information while running. +.It Fl s Ar svn-repos-path +Create a new Subversion repository at +.Pa svn-repos-path . +.It Fl -existing-svnrepos +Load into existing SVN repository, instead of creating one. Please note that you must own the repository, or at least be in the group which owns it, and have group writeable files/directories. +.It Fl p Ar start:stop +Start the program at pass +.Ar start +and stop it at pass +.Ar stop , +both may range from 1 (the default) to 5. +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 +current directory. Also, +.Ar stop +can be omitted, in this case only the pass specified in +.Ar start +will be executed. +.It Fl -dump-only +Just produce a dumpfile, don't commit to a repos. +.It Fl -dumpfile Ns = Ns Ar name +Set the +.Ar name +of the dumpfile. The default is +.Pa cvs2svn-dump +in the current directory. +.It Fl -svnadmin Ns = Ns Ar path +Path to the the +.Ar svnadmin +program. +.It Fl -trunk-only +Convert only trunk commits, not tags nor branches. +.It Fl -trunk Ns = Ns Ar path +Put the trunk (main branch) into the subdirectory +.Pa path +of the Subversion repository. +.It Fl -branches Ns = Ns Ar path +Put branch copies under the subdirectory +.Ar path +of the Subversion +repository. (But see +.Sx LIMITATIONS . ) +.It Fl -tags Ns = Ns Ar path +Put tag copies under the subdirectory +.Ar path +of the Subversion +repository. (But see +.Sx LIMITATIONS . ) +.It Fl -no-prune +Don't prune empty directories. +.It Fl -encoding Ns = Ns Ar encoding +Set the +.Ar encoding +of the CVS archive. +.It Fl -force-branch Ns = Ns Ar name +Force +.Ar name +to be a branch. +.It Fl -force-tag Ns = Ns Ar name +Force +.Ar name +to be a tag. +.It Fl -username Ns = Ns Ar name +Set the default username to +.Ar name +when cvs2svn doesn't have a username from the CVS repository to +work with. This happens when a branch or tag is created. The default +name is "unknown". +.It Fl -skip-cleanup +Prevent the deletion of intermediate files. +.It Fl -bdb-txn-nosync +Pass --bdb-txn-nosync to "svnadmin create". +.It Fl -cvs-revnums +Record CVS revision numbers as file properties. +.It Fl -mime-types Ns = Ns Ar file +Specify an apache-style mime.types +.Ar file +for setting svn:mime-type . On +.Ar Debian GNU/Linux systems , +you can have one at +.Ar /etc/mime.types +by installing the +.Ar mime-support +package. +.It Fl -set-eol-style +Automatically set svn:eol-style=native for text files (needs --mime-types). +.El +.Sh FILES +The current directory is used as scratch space for data files of the form +.Pa cvs2svn-data.* +and a dumpfile named +.Pa cvs2svn-dump +.Sh SEE ALSO +.Xr cvs 1 , +.Xr svn 1 , +.Xr svnadmin 1 +.Xr verify-cvs2svn 1 +.Sh AUTHORS +Originally written by unknown, big update for the Debian GNU/Linux system by +Laszlo 'GCS' Boszormenyi (but may be used by others). +