r104601 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104600‎ | r104601 | r104602 >
Date:21:49, 29 November 2011
Author:demon
Status:deferred
Tags:
Comment:
Initial checkin of natty svn-all-fast-export for backporting to lucid
Modified paths:
  • /trunk/debs/svn-all-fast-export (added) (history)
  • /trunk/debs/svn-all-fast-export/debian (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/changelog (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/compat (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/control (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/copyright (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/patches (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/patches/01_link_explicit.diff (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/patches/series (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/rules (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/source (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/source/format (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.1 (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.docs (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.install (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.manpages (added) (history)
  • /trunk/debs/svn-all-fast-export/debian/svn2git.debhelper.log (added) (history)

Diff [purge]

Index: trunk/debs/svn-all-fast-export/debian/control
@@ -0,0 +1,23 @@
 2+Source: svn-all-fast-export
 3+Section: devel
 4+Priority: extra
 5+Maintainer: José Manuel Santamaría Lema <panfaust@gmail.com>
 6+Build-Depends: debhelper (>= 7.4.12), libqt4-dev, libsvn-dev
 7+Build-Conflicts: qt3-dev-tools
 8+Standards-Version: 3.9.0
 9+Homepage: http://gitorious.org/svn2git
 10+
 11+Package: svn-all-fast-export
 12+Architecture: any
 13+Depends: ${shlibs:Depends}, ${misc:Depends}
 14+Description: A fast-import based converter to convert repos from svn to git
 15+ svn-all-fast-export is a tool to convert your svn repositories to git.
 16+ .
 17+ You will need to have a copy of your svn repository and to write some rules to
 18+ specify how the conversion will be done, for instance, you can manage how the
 19+ tags and branches will be managed writing the appropriate rules. You have
 20+ examples in /usr/share/doc/svn-all-fast-export/samples
 21+ .
 22+ Also, you can provide a file mapping the old svn accounts to the authors names
 23+ in the format "Author Name <email>" so will not need to use git filter-branch
 24+ to amend the commiters' names.
Index: trunk/debs/svn-all-fast-export/debian/source/format
@@ -0,0 +1 @@
 2+3.0 (quilt)
Index: trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.manpages
@@ -0,0 +1 @@
 2+debian/svn-all-fast-export.1
Index: trunk/debs/svn-all-fast-export/debian/compat
@@ -0,0 +1 @@
 2+7
Index: trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.1
@@ -0,0 +1,101 @@
 2+.\" Hey, EMACS: -*- nroff -*-
 3+.\" First parameter, NAME, should be all caps
 4+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 5+.\" other parameters are allowed: see man(7), man(1)
 6+.TH SVN-ALL-FAST-EXPORT 1 "April 25, 2010"
 7+.\" Please adjust this date whenever revising the manpage.
 8+.\"
 9+.\" Some roff macros, for reference:
 10+.\" .nh disable hyphenation
 11+.\" .hy enable hyphenation
 12+.\" .ad l left justify
 13+.\" .ad b justify to both left and right margins
 14+.\" .nf disable filling
 15+.\" .fi enable filling
 16+.\" .br insert line break
 17+.\" .sp <n> insert n+1 empty lines
 18+.\" for manpage-specific macros, see man(7)
 19+.SH NAME
 20+svn-all-fast-export \- tool to convert svn repositories into git
 21+.SH SYNOPSIS
 22+.B svn-all-fast-export
 23+.RI [ options ]
 24+.RI [ Path\ to\ subversion\ repository ]
 25+.SH DESCRIPTION
 26+.B svn-all-fast-export
 27+is a tool to convert your svn repositories to git.
 28+.PP
 29+You will need to have a copy of your svn repository and to write some rules to
 30+specify how the conversion will be done, for instance, you can manage how the
 31+tags and branches will be managed writing the appropriate rules. You have
 32+examples in /usr/share/doc/svn-all-fast-export/samples
 33+.PP
 34+.I Path to subversion repository
 35+is a backup copy of the subversion repository. Note that an svn url will not
 36+work due to the undistributed nature of svn.
 37+.PP
 38+.SH OPTIONS
 39+.TP
 40+.B \-\-identity\-map
 41+Provide map between svn username and email. You can provide a file mapping the
 42+old svn accounts to the authors names. This file must have a line per each svn
 43+account, you can use either the svn-all-fast-export native format:
 44+.br
 45+janesvnaccountname Jane Doe <jane.doe@example.com>
 46+.br
 47+or the git-svn format:
 48+.br
 49+janesvnaccountname = Jane Doe <jane.doe@example.com>
 50+.br
 51+.TP
 52+.B \-\-rules
 53+The rules file that determines what goes where. See
 54+/usr/share/doc/svn-all-fast-export/samples
 55+.TP
 56+.B \-\-add\-metadata
 57+If passed, each git commit will have svn commit info.
 58+.TP
 59+.B \-\-resume\-from
 60+Start importing at svn revision number.
 61+.TP
 62+.B \-\-max\-rev
 63+Stop importing at svn revision number.
 64+.TP
 65+.B \-\-dry\-run
 66+Don't actually write anything.
 67+.TP
 68+.B \-\-debug\-rules
 69+Print what rule is being used for each file.
 70+.TP
 71+.B \-\-commit\-interval number
 72+If passed the cache will be flushed to git every
 73+.I number
 74+of commits.
 75+.TP
 76+.B \-h, \-\-help
 77+Show summary of options.
 78+.TP
 79+.B \-v, \-\-version
 80+Show version of program.
 81+.SH RETURN VALUES
 82+This program returns 0 on success, on error something else (numbers in base 10):
 83+.br
 84+10 unrecognized option or missing argument
 85+.br
 86+.br
 87+11 no rules file specified
 88+.br
 89+.SH BUGS
 90+All matching rules need to end with a '/', else the tool will crash at some
 91+point. The only exception are the rules using the recurse-action.
 92+.SH HOMEPAGE
 93+http://gitorious.org/svn2git
 94+.\" .SH SEE ALSO
 95+.\" .BR bar (1),
 96+.\" .BR baz (1).
 97+.\" .br
 98+.\" The programs are documented fully by
 99+.\" .IR "The Rise and Fall of a Fooish Bar" ,
 100+.\" available via the Info system.
 101+.SH AUTHORS
 102+svn-all-fast-export was written by Thiago Macieira and Thomas Zander.
Index: trunk/debs/svn-all-fast-export/debian/svn2git.debhelper.log
@@ -0,0 +1 @@
 2+dh_auto_configure
Index: trunk/debs/svn-all-fast-export/debian/changelog
@@ -0,0 +1,19 @@
 2+svn-all-fast-export (0~git20100701-1) unstable; urgency=low
 3+
 4+ * New upstream release.
 5+ * Release to unstable.
 6+ * Add 01_link_explicit.diff to be able to build the package with
 7+ binutils-gold.
 8+ * Bump S-V to 3.9.0, no changes needed.
 9+ * Build-Conflicts on qt3-dev-tools because of #571640.
 10+ * Removed boilerplate comment in debian/rules.
 11+ * Updated manpage, noticing that you can use the git-svn format for the
 12+ account map file and the return values for the program.
 13+
 14+ -- José Manuel Santamaría Lema <panfaust@gmail.com> Thu, 01 Jul 2010 11:54:51 +0200
 15+
 16+svn-all-fast-export (0~git20100425-1) experimental; urgency=low
 17+
 18+ * Initial release (Closes: #579868)
 19+
 20+ -- José Manuel Santamaría Lema <panfaust@gmail.com> Sun, 25 Apr 2010 19:38:33 +0200
Index: trunk/debs/svn-all-fast-export/debian/patches/01_link_explicit.diff
@@ -0,0 +1,15 @@
 2+# Description: Add "-lapr-1 -lsvn_subr-1" to the linker options.
 3+# Without this patch the package will FTBFS with binutils-gold.
 4+# Forwarded: http://gitorious.org/svn2git/svn2git/merge_requests/5
 5+# Author: José Manuel Santamaría Lema <panfaust@gmail.com>
 6+--- svn-all-fast-export-0~git20100701.orig/src/src.pro
 7+@@ -13,7 +13,7 @@
 8+
 9+ INCLUDEPATH += . $$SVN_INCLUDE $$APR_INCLUDE
 10+ !isEmpty($$SVN_LIBDIR): LIBS += -L$$SVN_LIBDIR
 11+-LIBS += -lsvn_fs-1 -lsvn_repos-1
 12++LIBS += -lsvn_fs-1 -lsvn_repos-1 -lapr-1 -lsvn_subr-1
 13+
 14+ # Input
 15+ SOURCES += ruleparser.cpp \
Index: trunk/debs/svn-all-fast-export/debian/patches/series
@@ -0,0 +1 @@
 2+01_link_explicit.diff
Index: trunk/debs/svn-all-fast-export/debian/copyright
@@ -0,0 +1,36 @@
 2+This work was packaged for Debian by:
 3+
 4+ José Manuel Santamaría Lema <panfaust@gmail.com> on Sun, 25 Apr 2010 19:38:33 +0200
 5+
 6+Upstream Authors:
 7+
 8+ Thiago Macieira <thiago@kde.org>
 9+ Thomas Zander <tzander@trolltech.com>
 10+
 11+Copyright:
 12+
 13+ Copyright © 2007 Thiago Macieira <thiago@kde.org>
 14+ Copyright © 2008-2009 Thomas Zander <tzander@trolltech.com>
 15+
 16+License:
 17+
 18+ This program is free software: you can redistribute it and/or modify
 19+ it under the terms of the GNU General Public License as published by
 20+ the Free Software Foundation, either version 3 of the License, or
 21+ (at your option) any later version.
 22+
 23+ This program is distributed in the hope that it will be useful,
 24+ but WITHOUT ANY WARRANTY; without even the implied warranty of
 25+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 26+ GNU General Public License for more details.
 27+
 28+ You should have received a copy of the GNU General Public License
 29+ along with this program. If not, see <http://www.gnu.org/licenses/>.
 30+
 31+
 32+The Debian packaging is:
 33+
 34+ Copyright (C) 2010 José Manuel Santamaría Lema <panfaust@gmail.com>
 35+
 36+and is licensed under the GPL version 3 or later,
 37+see "/usr/share/common-licenses/GPL-3".
Index: trunk/debs/svn-all-fast-export/debian/rules
@@ -0,0 +1,34 @@
 2+#!/usr/bin/make -f
 3+
 4+# Uncomment this to turn on verbose mode.
 5+#export DH_VERBOSE=1
 6+
 7+%:
 8+ dh $@
 9+
 10+#overide_dh_configure:
 11+# qmake-qt4
 12+
 13+# Copied from /usr/share/cdbs/1/rules/buildvars.mk
 14+VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
 15+NOEPOCH_VERSION := $(shell echo $(VERSION) | cut -d: -f2-)
 16+UPSTREAM_VERSION := $(shell echo $(NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
 17+
 18+clean-get-orig-source:
 19+ @@rm -rf ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION)
 20+
 21+get-orig-source: clean-get-orig-source
 22+ @@dh_testdir
 23+ @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
 24+ @@echo 'Checking out for repacking ...'
 25+ @@git clone git://gitorious.org/svn2git/svn2git.git \
 26+ ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION)
 27+ @@echo 'Getting the changelog ...'
 28+ @@cd ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION); \
 29+ git log > ChangeLog
 30+ @@echo Creating the tarball ...
 31+ @@cd ../tarballs/; \
 32+ rm -rf svn-all-fast-export-$(UPSTREAM_VERSION)/.git; \
 33+ tar zcf ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION).tar.gz svn-all-fast-export-$(UPSTREAM_VERSION)
 34+ @@rm -rf ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION)
 35+ @@echo Ready for packaging.
Property changes on: trunk/debs/svn-all-fast-export/debian/rules
___________________________________________________________________
Added: svn:executable
136 + *
Index: trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.install
@@ -0,0 +1 @@
 2+svn-all-fast-export /usr/bin
Index: trunk/debs/svn-all-fast-export/debian/svn-all-fast-export.docs
@@ -0,0 +1 @@
 2+samples/