Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371917 - Update gentoo-86.git repo from git-exp machine
Summary: Update gentoo-86.git repo from git-exp machine
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 11:49 UTC by Stanislav Ochotnicky (RETIRED)
Modified: 2014-03-23 00:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
git regen script (regen_git.sh,4.32 KB, text/plain)
2011-06-16 11:50 UTC, Stanislav Ochotnicky (RETIRED)
Details
pregenerated author files with manual fixes to be used as "base" author file (authors,25.47 KB, text/plain)
2011-06-16 11:51 UTC, Stanislav Ochotnicky (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Ochotnicky (RETIRED) gentoo-dev 2011-06-16 11:49:37 UTC
It would be nice if we ran script to update gentoo-x86 git conversion locally on git-exp. This would enable to update repo more often. Attached is a shell script to regenerate our git repository using few things. Flow of this script is as follows:

1. check requirements (needs dev-ruby/rcsparse, dev-ruby/rbtreem, dev-ruby/fromcvs). It also needs git and rsync but these are implied.
2. update cvs tree using rsync
3. update "author" mapping between committer id and git commit author. This step needs previously generated author mappings with manual fixes for few old souls without proper id at the time.
4. initialize bare git repository if it doesn't exist
5. run togit ruby script to convert cvs to git using authors file from step 3
6. push git repo to "origin" (we don't set it)

Pregenerated authors file to be placed into tmpdir (-t switch) is attached as well.

Help output:
regen_git.sh - generate/update git conversion of Gentoo x86 CVS tree

-h		help
-t tmpdir	set temporary directory [default:/tmp]
-u user 	set cvs user for getting userlist [default:$USER]
-g output	output git directory [default:/tmp/gentoo-x86.git]
-r		omit requirement checking
-c		omit cvs tree update
-m		omit updating developer mapping to aliases
-o		omit git tree conversion
-p		omit pushing git to origin



Reproducible: Always
Comment 1 Stanislav Ochotnicky (RETIRED) gentoo-dev 2011-06-16 11:50:24 UTC
Created attachment 277229 [details]
git regen script
Comment 2 Stanislav Ochotnicky (RETIRED) gentoo-dev 2011-06-16 11:51:26 UTC
Created attachment 277231 [details]
pregenerated author files with manual fixes to be used as "base" author file
Comment 3 Stanislav Ochotnicky (RETIRED) gentoo-dev 2011-06-16 11:52:22 UTC
As a spam precaution changed this to private bug due to authors file containing emails.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-11-19 09:32:17 UTC
ferringb:
This was the other generation code using togit.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2014-03-23 00:35:48 UTC
git-exp is gone now.

-A