On Mon, Feb 13, 2012 at 06:29:08PM +0100, Lukas Ocilka wrote:
> As SP2 is not blocking us anymore, it's now time to switch from SVN
> to GitHub as we've decided earlier in 2011.
> 
> I know there were some issues with importing all the history but I
> don't have enough details on which pieces were missing. Maybe not
> everything is actually needed. Let's focus on finishing the
> transition now, please.

Daniel and Klaus made some progress last year, and the current work
is at https://github.com/kkaempf/yast-svn2git/tree/satsolver

The makefile there did not work out of the box for me. (patch
attached!)

It would be great if someone made a run of the tool and published
the results so that module maintainers can look at how their git
repos would look like and report bugs, like I did for the previous
attempt, in
http://lists.opensuse.org/yast-devel/2011-03/msg00034.html

-- 
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
From 14a0ac160b16603380917a38ea6163166693f816 Mon Sep 17 00:00:00 2001
From: Martin Vidner <[email protected]>
Date: Thu, 16 Feb 2012 11:39:27 +0100
Subject: [PATCH] Rule for yast-full.solv; rpm requirements; Makefile syntax

dash is for ignoring errors; if you want to suppress echo
it is @ like in DOS

yastt-full.dump must be obtained manually; TODO document
---
 Makefile  |   15 +++++++++------
 README.md |    1 +
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 9cbbcaf..fca2552 100644
--- a/Makefile
+++ b/Makefile
@@ -3,29 +3,32 @@
 all: git
 
 git: svn
-	-echo "Convert SVN to GIT"
+	@echo "Convert SVN to GIT"
 	# convert svn to bare git repo
 	(cd $(MODULE).dir; rm -rf yast-$(MODULE); /abuild/projects/svn2git/svn-all-fast-export --debug-rules --add-metadata --identity-map ../yast.map --rules ../yast.rules svn > stdout.svn2git 2> stderr.svn2git)
 
 svn: extract
-	-echo "Create new SVN repo"
+	@echo "Create new SVN repo"
 	# load the splitted dump into a new svn repo
 	(cd $(MODULE).dir; rm -rf svn; mkdir svn; cd svn; svnadmin create .; svnadmin load . < ../dump > ../stdout.svnadmin 2> ../stderr.svnadmin)
 
-extract: moduledir
-	-echo "Extracting relevant revisions for $(MODULE)"
+extract: moduledir yast-full.solv
+	@echo "Extracting relevant revisions for $(MODULE)"
 # split the full dump
 	(cd $(MODULE).dir; ruby ../dump-splitter.rb --debug ../../yast-full.dump ../yast-full.solv $(MODULE) > dump)
 
+yast-full.solv: ../yast-full.dump
+	ruby dump2solv.rb $< $@
+
 moduledir: module.rule
 	rm -rf $(MODULE).dir
 	mkdir -p $(MODULE).dir
 
 module.rule: modulename
-	-echo "declare MODULE=$(MODULE)" > module.rule
+	@echo "declare MODULE=$(MODULE)" > module.rule
 
 modulename:
-	-if test -z "$(MODULE)"; then echo "Module name missing, set MODULE="; exit 1; fi
+	@if test -z "$(MODULE)"; then echo "Module name missing, set MODULE="; exit 1; fi
 
 clean:
 	rm -rf svn
diff --git a/README.md b/README.md
index e4ef182..34228b9 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
 
 1. git
 2. ruby
+2. ruby-satsolver
 3. A <tt>svnadmin dump</tt> of the YaST SVN repo, called <tt>yast-full.dump</tt>
 4. The svn2git tool from KDE (http://techbase.kde.org/Projects/MoveToGit/UsingSvn2Git)
 5. Some disk space (The YaST svn dump is 4GB already)
-- 
1.7.7

Attachment: pgpLLJHgROgsC.pgp
Description: PGP signature

Reply via email to