<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3AImporting_Moodle_CVS_history_into_git</id>
	<title>Development:Importing Moodle CVS history into git - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3AImporting_Moodle_CVS_history_into_git"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Importing_Moodle_CVS_history_into_git&amp;action=history"/>
	<updated>2026-05-07T17:35:32Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Importing_Moodle_CVS_history_into_git&amp;diff=11252&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Importing_Moodle_CVS_history_into_git&amp;diff=11252&amp;oldid=prev"/>
		<updated>2024-10-21T08:51:21Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:51, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Importing_Moodle_CVS_history_into_git&amp;diff=11251&amp;oldid=prev</id>
		<title>1&gt;Skodak в 12:45, 20 октября 2010</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Importing_Moodle_CVS_history_into_git&amp;diff=11251&amp;oldid=prev"/>
		<updated>2010-10-20T12:45:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Importing CVS==&lt;br /&gt;
&lt;br /&gt;
To begin we must import the CVS repository into a local git filesystem using [http://www.kernel.org/pub/software/scm/git/docs/git-cvsimport.html git-cvsimport].&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 CVSROOT=:pserver:anonymous@uk.cvs.moodle.org:/cvsroot/moodle&lt;br /&gt;
 MODULE=moodle&lt;br /&gt;
 INSTALLDIR=moodle&lt;br /&gt;
 git cvsimport -p x -v -k -o cvshead -d $CVSROOT -C $INSTALLDIR $MODULE &amp;amp;&amp;gt; cvsimport.log&lt;br /&gt;
&lt;br /&gt;
(When might one want to use the -m -u and -s flags?)&lt;br /&gt;
 -u purely cosmetic&lt;br /&gt;
 -s slashes can cause problems but this doesn&amp;#039;t seem to be the case with moodle&lt;br /&gt;
 -m ?&lt;br /&gt;
&lt;br /&gt;
This will run for a &amp;#039;&amp;#039;&amp;#039;very&amp;#039;&amp;#039;&amp;#039; long time as it checks out every revision of each file (including all branches).  However, if you run the command after a successful initial run it will simply get the new revisions since it was last run.  This creates a new git repository which can then be cloned and worked upon. &lt;br /&gt;
&lt;br /&gt;
At the time of writing the size of a new Moodle git repository was approximately 866MB &amp;#039;&amp;#039;unpacked&amp;#039;&amp;#039;, and 75MB packed. Newer versions of git pack the project during import, so your resulting repository plus checkout should be a bit over 100MB. Still, it is a good idea to pack the repository to make it smaller and faster, running &lt;br /&gt;
&lt;br /&gt;
 git-repack -a -d &lt;br /&gt;
&lt;br /&gt;
With the -o cvshead flag, the &amp;quot;HEAD&amp;quot; of the CVS repo will appear as &amp;#039;cvshead&amp;#039; in GIT, making things a lot clearer.&lt;br /&gt;
&lt;br /&gt;
==Importing CVS Faster==&lt;br /&gt;
&lt;br /&gt;
For initial imports, it is highly recommended that you fetch the CVS repository from one of Moodle [[CVS_for_Administrators#CVS_Servers | cvs servers]] and run the initial cvsimport against your local copy of the repository. &lt;br /&gt;
&lt;br /&gt;
:: For the more adventurous: Keith Packard wrote another importer that does a better job at the initial import, called parsecvs. I use parsecvs for the initial import and then git-cvsimport daily for the incremental imports. --[[User:Martin Langhoff|Martin Langhoff]] 15:04, 19 July 2006 (WST)&lt;br /&gt;
&lt;br /&gt;
:: It took me a few minutes to find the info in the Sourceforge docs on how to fetch the raw CVS repo via rsync. Just type &amp;#039;rsync -av &amp;quot;rsync://moodle.cvs.sourceforge.net/cvsroot/moodle/moodle/*&amp;quot; .&amp;#039; (without the single quotes) and you&amp;#039;ll be done --[[User:Iñaki Arenaza|Iñaki Arenaza]] 17:54, 25 December 2006 (CST). &lt;br /&gt;
&lt;br /&gt;
:: This rsync command line doesn&amp;#039;t work as-is anymore, since the repository was moved from sourceforge. Some mirrors (at least es.cvs.moodle.org at this time) provide rsync, but some don&amp;#039;t (like eu.cvs.moodle.org). Find the best mirror for you and update the rsync call accordingly.&lt;br /&gt;
&lt;br /&gt;
After the initial import, you can run git-cvsimport against your favorite cvs.moodle.org mirror repository, or update your local copy via rsync as sas demonstrated in [http://www.progsoc.org/~wildfire/git/update-repo.sh this script].&lt;br /&gt;
&lt;br /&gt;
== Useful Links ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/git-cvsimport.html git-cvsimport man page]&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|Importing Moodle CVS history into git]]&lt;br /&gt;
[[Category:Git]]&lt;/div&gt;</summary>
		<author><name>1&gt;Skodak</name></author>
	</entry>
</feed>