Frameworks/GitOldHistory: Difference between revisions

From KDE Community Wiki
m (code.qt.io instead of gitorious)
(Add link to kdelibs repo, and mention older repos)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In this page we'll describe the procedure to get access to the old history of a framework to cross to its original unsplit repository with git graft.
In this page we'll describe the procedure to get access to the old history of a framework to cross to its original unsplit repository with git graft.


<ol>
1. You need a local clone of qtrepotools. This is part of any qt5.git clone, or you can clone it separately using:
<li> You need a local clone of qtrepotools. This is part of any qt5.git clone, or you can clone it separately using <tt>git clone git://code.qt.io/qt/qtrepotools.git</tt>.


<li> You need a local clone of kdelibs (the branch doesn't matter, it could be KDE/4.x, master, or the now-unused frameworks branch).
{{bc-hl|lang=bash|code=git clone git://code.qt.io/qt/qtrepotools.git}}
Let's say this is in ~/kde4/kdelibs for instance.


<li> Run this command from the frameworks directory (the parent directory of all the frameworks clones)
2. You need a local clone of [https://invent.kde.org/unmaintained/kdelibs kdelibs]. The branch doesn't matter, it could be ''KDE/4.x'', ''master'', or the now-unused ''frameworks'' branch.


<pre>
Let's say this is in {{ic|~/kde4/kdelibs}} for instance.
 
3. Run this command from the frameworks directory (the parent directory of all the frameworks clones)
 
{{bc-hl|lang=bash|code=
for d in * ; do ( cd $d ; /path/to/qtrepotools/bin/git-qt-grafts ~/kde4/kdelibs ) ; done
for d in * ; do ( cd $d ; /path/to/qtrepotools/bin/git-qt-grafts ~/kde4/kdelibs ) ; done
</pre>
}}


<li> It will fail for ktexteditor, since that one comes from the kate repository.
4. It will fail for ktexteditor, since that one comes from the kate repository.
<pre>
 
{{bc-hl|lang=bash|code=
cd ktexteditor
cd ktexteditor
/path/to/qtrepotools/bin/git-qt-grafts ~/kde4/kate
/path/to/qtrepotools/bin/git-qt-grafts ~/kde4/kate
</pre>
}}
</ol>
 
5. When you want to go really old and also outside of kdelibs domain, phabricator also has some web UI for the svn repo, usually faster and with more features: https://phabricator.kde.org/source/svn/ and then branches/KDE/ for version branches.
 
But https://invent.kde.org/groups/unmaintained/-/archived (note the "Archived", not default list) has many of that as git conversions.

Latest revision as of 21:15, 2 November 2023

In this page we'll describe the procedure to get access to the old history of a framework to cross to its original unsplit repository with git graft.

1. You need a local clone of qtrepotools. This is part of any qt5.git clone, or you can clone it separately using:

git clone git://code.qt.io/qt/qtrepotools.git

2. You need a local clone of kdelibs. The branch doesn't matter, it could be KDE/4.x, master, or the now-unused frameworks branch.

Let's say this is in ~/kde4/kdelibs for instance.

3. Run this command from the frameworks directory (the parent directory of all the frameworks clones)

for d in * ; do ( cd $d ; /path/to/qtrepotools/bin/git-qt-grafts ~/kde4/kdelibs ) ; done

4. It will fail for ktexteditor, since that one comes from the kate repository.

cd ktexteditor
/path/to/qtrepotools/bin/git-qt-grafts ~/kde4/kate

5. When you want to go really old and also outside of kdelibs domain, phabricator also has some web UI for the svn repo, usually faster and with more features: https://phabricator.kde.org/source/svn/ and then branches/KDE/ for version branches.

But https://invent.kde.org/groups/unmaintained/-/archived (note the "Archived", not default list) has many of that as git conversions.