Mailinglist Archive: yast-devel (80 mails)

< Previous Next >
Re: [yast-devel] It's time to switch to GitHub
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

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

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

Martin Vidner, YaST developer

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
From 14a0ac160b16603380917a38ea6163166693f816 Mon Sep 17 00:00:00 2001
From: Martin Vidner <mvidner@xxxxxxx>
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 +++++++++------ | 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 ../ --rules ../yast.rules svn > stdout.svn2git 2>

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

- -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

rm -rf svn
diff --git a/ b/
index e4ef182..34228b9 100644
--- a/
+++ b/
@@ -4,6 +4,7 @@

1. git
2. ruby
+2. ruby-satsolver
3. A <tt>svnadmin dump</tt> of the YaST SVN repo, called
4. The svn2git tool from KDE
5. Some disk space (The YaST svn dump is 4GB already)

< Previous Next >
Follow Ups