From Fedora Project Wiki
(Add other active branches) |
(Clarify what local branches mean) |
||
Line 49: | Line 49: | ||
== Branch names == | == Branch names == | ||
{| | {| | ||
! Old CVS !! new | ! Old CVS !! new remote git !! fedpkg local branch names !! Notes | ||
|- | |- | ||
| devel || master || | | devel || origin/master || master || This is the default when you do fedpkg co | ||
|- | |- | ||
| F-14 | | F-14 || origin/f14/master || f14 || | ||
|- | |- | ||
| F-13 | | F-13 || origin/f13/master || f13 || | ||
|- | |- | ||
| F-12 | | F-12 || origin/f12/master || f12 || | ||
|- | |- | ||
| EL-6 || || As of July 30, not implemented | | EL-6 || || || As of July 30, not implemented | ||
|- | |- | ||
| EL-5 || || As of July 30, not implemented | | EL-5 || || || As of July 30, not implemented | ||
|} | |} | ||
{{admon/note|local branch names| If you use git commands to branch and checkout directly, you can define whatever local branch names you want. If you use <code>fedpkg switch-branch</code>, it will default to creating the names listed in the table above. So you can do <code>fedpkg clone firefox ; fedpkg switch-branch f14</code> and then you'll have a new local branch named <code>f14</code>}} | |||
== Other Links == | == Other Links == |
Revision as of 15:52, 30 July 2010
The following paragraphs are provisional content during the (doc) migration from dist-cvs to dist-git is happening.
Commands
Here is a basic table of equivalent commands:
OLD CVS | NEW GIT | Notes |
---|---|---|
cvs checkout libfoo | fedpkg clone libfoo | Note that branches are not separated out by directory with this command. To switch to a different branch with this layout, run: fedpkg switch-branch f13 |
cvs checkout libfoo (ALTERNATE) | fedpkg clone -B libfoo | This command creates the same branch/directory layout that was used with cvs. |
cvs update | git pull | fedpkg will get a pull soon. |
cvs commit . | fedpkg commit -p | |
cvs commit -m 'breaking things' . | fedpkg commit -m 'breaking things' -p | |
cvs commit -F clog . | fedpkg commit -F clog -p | Use the contents of file "clog" as the commit message. |
make clog | fedpkg clog | Create the "clog" file from the %changelog of the specfile. |
make tag | N/A | Explicitly tagging source states for package builds is no longer necessary. |
make build | fedpkg build | |
BUILD_FLAGS="--nowait" make build | fedpkg build --nowait | If you don't want to wait for the build to complete before freeing up the shell. |
make prep | fedpkg prep | |
make chain-build CHAIN='foo bar : baz' | fedpkg chain-build foo bar : baz | Just like before, the current directory package is always added to the end of the CHAIN list. |
make scratch-build | fedpkg scratch-build | |
make local | fedpkg local | |
make x86_64 | fedpkg local --arch x86_64 | |
make upload FILES='apollo starbuck' | fedpkg upload apollo starbuck | Remember, this adds new source files without replacing others. |
make new-sources FILES='red_fish blue_fish' | fedpkg new-sources red_fish blue_fish | This replaces any existing source files. |
make help | fedpkg -h | |
./cvs-import.sh libfoo-1.2-3.src.rpm | mkdir libfoo cd libfoo fedpkg import libfoo-1.2-3.src.rpm (Review Changes) fedpkg commit -p |
Branch names
Old CVS | new remote git | fedpkg local branch names | Notes |
---|---|---|---|
devel | origin/master | master | This is the default when you do fedpkg co |
F-14 | origin/f14/master | f14 | |
F-13 | origin/f13/master | f13 | |
F-12 | origin/f12/master | f12 | |
EL-6 | As of July 30, not implemented | ||
EL-5 | As of July 30, not implemented |
Other Links
Some links related to dist-git:
- http://pkgs.fedoraproject.org/gitweb/ broken, and listing 10K+ packages does not work anyway
- PackageMaintainers/Git_Admin_Requests (was CVS_admin_requests and PackageMaintainers/CVSAdminProcedure)
Some links related to the actual migration to dist-git:
- [[]]
Basic changes:
- fedpkg replaces make
- git replaces cvs
Some links needing migration follow. Note that after migration texts might better refer to generic SCM instead of a specific name like cvs or git:
- PackageMaintainers/NewPackageProcess contains CVS specific parts
- PackageMaintainers/UsingCvsFaq obsolete, start PackageMaintainers/UsingGitFaq?
- Package_Renaming_Process trivial fixes neede
- CVS_access_for_package_maintainers lots to do,
- PackageMaintainers/BuildRequests fedpkg instead of make
- PackageMaintainers/PackagingTricks contains references to cvs, make
- Package_update_HOWTO references cvs+make
- PackageMaintainers/BuildSystemClientSetup#Install_the_Client_Tools_.28Koji.29 references cvs+make
- PackageMaintainers/MockTricks#How_do_I_use_Mock.3F talks about "CVS sandbox"
- PackageMaintainers/Packaging_Tricks
- Package_Review_Process talks about CVS
- Fedora_Release_Life_Cycle talks about CVS
- PackageMaintainers/Join#Add_Package_to_CVS_and_Set_Owner refers to CVS and fedora-cvs
This list probably is not complete.