Re: SVN to Git migration script for pkg-java
On Wed, Jun 4, 2014 at 5:07 PM, Emmanuel Bourg <ebourg@apache.org> wrote:
> Hi all,
>
> I prepared a script to migrate a package from SVN to Git. I tested it on
> a couple of packages and it seems to work fine. The script is available
> on alioth at:
>
> http://anonscm.debian.org/gitweb/?p=pkg-java/pkg-java-svn2git.git
>
> Migrating a package is as simple as typing:
>
> ./migrate-svn-repo-to-git <packagename>
>
Hi Emmanuel,
I tried it with two packages - epubcheck and saxonhe, but it failed
for both of them e.g.:
$ ./migrate-svn-repo-to-git saxonhe
Initializing the Git repository...
Initialized empty Git repository in
/home/eugene/development/svn2git/pkg-java-svn2git/saxonhe/.git/
~/development/svn2git/pkg-java-svn2git/saxonhe
~/development/svn2git/pkg-java-svn2git
Switched to a new branch 'upstream'
[upstream (root-commit) f63ebb4] Initial upstream branch.
Switched to a new branch 'master'
Cloning the SVN repository..
git: 'svn' is not a git command. See 'git --help'.
Did you mean one of these?
fsck
mv
show
Converting branches to tags...
error: remote branch 'origin/trunk' not found.
Updating debian/control...
sed: can't read debian/control: No such file or directory
sed: can't read debian/control: No such file or directory
sed: can't read debian/control: No such file or directory
sed: can't read debian/control: No such file or directory
Updated Vcs-* fields:
grep: debian/control: No such file or directory
dch: fatal error at line 580:
Cannot find debian/changelog anywhere!
Are you in the source code tree?
(You could use --create if you wish to create this file.)
error: pathspec 'debian/control' did not match any file(s) known to git.
error: pathspec 'debian/changelog' did not match any file(s) known to git.
What am I doing wrong?
Eugene
Reply to: