User Tools

Site Tools


cvs2git

This is an old revision of the document!


Changes to Developer

First you should get yourself git based tools:

poldek --up -u rpm-build-tools git-core
mv rpm rpm.cvs
builder --init-rpm-dir

actions map

Action Before (CVS) After (Git)
add new package
../builder -a PKG

or

cvs add PKGDIR
builder -a PKG

or

slug.py init PKG
rename package send rename request to cvsadmin@
ssh git@git.pld-linux.org move PKG1 PKG2
delete package remove all sources from cvs ask admin to run
ssh git@git.pld-linux.org trash PKG
update from remote
cvs up
git pull --rebase
checkin single file
cvs ci file.foo
git add file.foo; git commit; git push
checkin all changes
cvs ci
git commit -a; git push
find string from all packages
grep -r oauth_ SPECS
slug.py checkout -b BRANCH; grep */*.spec
list all pkgs
cvs ls packages
slug.py list
see old patches look into Attic/ in cvsweb
git log --pretty=format: --name-only --diff-filter=D
restore old removed file look into Attic/ in cvsweb and
cvs up -jHEAD -j$DEAD_REV and commit
1. get sha:
git log -- FILE

2. get contents:

git show HASH:FILE
convert last autotag into branch
./builder -T ICU_4_8 -r auto-th-xxx icu.spec
./builder -g -r ICU_4_8 icu.spec
cvs tag -b -F ICU_4_8 icu.spec
cvs ci -m '- ...' icu.spec
./builder -B ICU_4_8 -r   auto-th-xxx icu.spec
git push origin ICU_4_8
git checkout ICU_4_8
delete remote branch
cvs branch -d BRANCH
git push origin :BRANCH
cvs2git.1366450862.txt.gz · Last modified: 2013-04-20 11:41 by glen