This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cvs2git [2012-07-03 13:58] draenog [actions map] |
cvs2git [2012-09-19 11:32] glen non-specific package version |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Changes to Developer ===== | ===== Changes to Developer ===== | ||
- | First you should get yourself git based tools. | + | First you should get yourself git based tools: |
- | - **builder** : FIXME should we build package here? | + | <code> |
- | - ... | + | poldek --up -u rpm-build-tools git-core |
+ | mv rpm rpm.cvs | ||
+ | builder --init-rpm-dir | ||
+ | </code> | ||
Line 10: | Line 14: | ||
^ Action ^ Before (CVS) ^ After (Git) ^ | ^ Action ^ Before (CVS) ^ After (Git) ^ | ||
| add new package | <code>../builder -a PKG</code> or <code>cvs add PKGDIR</code> | <code>builder -a PKG</code> or <code>slug.py init PKG</code> | | | add new package | <code>../builder -a PKG</code> or <code>cvs add PKGDIR</code> | <code>builder -a PKG</code> or <code>slug.py init PKG</code> | | ||
- | | rename package | send rename request to cvsadmin@ | <code>slug.py move PKG1 PKG2</code> | | + | | rename package | send rename request to cvsadmin@ | <code>ssh git@git.pld-linux.org move PKG1 PKG2</code> | |
- | | delete package | remove all sources from cvs | ask admin to run<code>ssh git@pld-linux.org trash PKG</code> | | + | | delete package | remove all sources from cvs | ask admin to run<code>ssh git@git.pld-linux.org trash PKG</code> | |
| update from remote | <code>cvs up</code> | <code>git pull --rebase</code> | | | update from remote | <code>cvs up</code> | <code>git pull --rebase</code> | | ||
| checkin single file | <code>cvs ci file.foo</code> | <code>git add file.foo; git commit; git push</code> | | | checkin single file | <code>cvs ci file.foo</code> | <code>git add file.foo; git commit; git push</code> | | ||
| checkin all changes | <code>cvs ci</code> | <code>git commit -a; git push</code> | | | checkin all changes | <code>cvs ci</code> | <code>git commit -a; git push</code> | | ||
- | | find string from all packages | <code>grep -r oauth_ SPECS</code> | | | + | | find string from all packages | <code>grep -r oauth_ SPECS</code> | <code>slug.py checkout -b BRANCH; grep */*.spec</code> | |
| list all pkgs | <code>cvs ls packages</code> |<code>slug.py list</code> | | | list all pkgs | <code>cvs ls packages</code> |<code>slug.py list</code> | | ||
| see old patches | look into ''Attic/'' in cvsweb | <code>git log --pretty=format: --name-only --diff-filter=D</code> | | | see old patches | look into ''Attic/'' in cvsweb | <code>git log --pretty=format: --name-only --diff-filter=D</code> | |