User Tools

Site Tools


cvs2git

CVS to GIT cheatsheet

Changes to Developer

First you should get yourself git based tools:

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

Actions

add new package

  • CVS: ../builder -a PKG or cvs add PKGDIR
  • GIT: builder -a PKG or slug.py init PKG

rename package

  • CVS: send rename request to cvsadmin@
  • GIT: ssh git@git.pld-linux.org move PKG1 PKG2

delete package

  • CVS: remove all sources from cvs
  • GIT: ask admin to run ssh git@git.pld-linux.org trash PKG

update from remote

  • CVS: cvs up
  • GIT: git pull --rebase

checkin single file

  • CVS: cvs ci file.foo
  • GIT: git add file.foo; git commit; git push

checkin all changes

  • CVS: cvs ci
  • GIT: git commit -a; git push

find string from all packages

  • CVS: grep -r oauth_ SPECS
  • GIT: slug.py checkout -b BRANCH; grep */*.spec

list all pkgs

  • CVS: cvs ls packages
  • GIT: slug.py list

see old patches

  • CVS: look into Attic/ in cvsweb
  • GIT: git log --pretty=format: --name-only --diff-filter=D

restore old removed file

  • CVS: look into Attic/ in cvsweb and
    cvs up -jHEAD -j$DEAD_REV and commit
  • GIT:
  1. get sha: git log -- FILE
  2. get contents: git show HASH:FILE

convert last autotag into branch

  • CVS:
    ./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
  • GIT:
    ./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:
    cvs branch -d BRANCH
  • GIT:
    git push origin :BRANCH
cvs2git.txt · Last modified: 2014-03-29 18:56 by glen

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS PLD Linux Driven by DokuWiki