Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code, can be unstable sometimes
No events planned
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:svk [2005/09/20 07:50] – (old revision restored) 127.0.0.1 | documentation:svk [2006/06/02 11:02] (current) – removed kang | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== What is SVK ===== | ||
- | |||
- | SVK is available from http:// | ||
- | It is a " | ||
- | It uses FSFS from SVN as it's sublayer. From a 10,000 feet view, SVK allows to checkout any SVN/ | ||
- | |||
- | From a more technical point of view, SVK is like a repository on your local machine where you have two kinds of sub-repositories: | ||
- | |||
- | ===== Getting started, mirroring a repository ===== | ||
- | |||
- | So let's initialise where to keep the local repository (the depot): | ||
- | < | ||
- | # svk depotmap --init | ||
- | </ | ||
- | You can choose where to put or change the location of this depot with the relocate command: | ||
- | < | ||
- | # svk depotmap --relocate / | ||
- | </ | ||
- | |||
- | |||
- | We will now mirror an existing SVN repository, RSBAC' | ||
- | Let's create a path just for mirrors. Put whatever you feel like as commit message when asked. | ||
- | < | ||
- | # svk mkdir //mirrors | ||
- | </ | ||
- | |||
- | Now create the mirrored path: | ||
- | |||
- | //For anonymous mirroring// | ||
- | < | ||
- | # svk mirror svn:// | ||
- | </ | ||
- | |||
- | //For developers with write access// | ||
- | < | ||
- | # svn+ssh:// | ||
- | </ | ||
- | |||
- | And synchronise it: | ||
- | < | ||
- | # svk sync // | ||
- | </ | ||
- | |||
- | When committing or using this path directly, changes will affect the real SVN repository directly, much like using SVN would do. | ||
- | |||
- | Whenever you want to checkout this path, just do it. You can delete the files afterwards and check them out again, or you can simply update then. There will be no " | ||
- | |||
- | ===== Making a local branch, working offline ===== | ||
- | |||
- | To work offline or just do your stuff without affecting the repository directly, you've to create a local branch. Once you are done with your work you can commit it to the mirrored path, or create a patch if you have no write access (and send it to us :-)) | ||
- | |||
- | So, create a directory for the local branches, and create one for rsbac1: | ||
- | < | ||
- | # svk mkdir //local | ||
- | # svk cp // | ||
- | </ | ||
- | |||
- | You can now checkout "// | ||
- | |||
- | Once done, you have to merge back your local branch to the mirrored path (this will commit your changes to the real SVN repository) | ||
- | |||
- | < | ||
- | # svk push // | ||
- | </ | ||
- | |||
- | You can also get the changes from the mirror to update your local branch: | ||
- | |||
- | < | ||
- | # svk pull // | ||
- | </ | ||
- | |||
- | ===== Signing ===== | ||
- | If you are a RSBAC developper, please do not forget to sign every commit made to the mirrored path! | ||
- | |||
- | Simply add " | ||
- | < | ||
- | # svk push -S // | ||
- | </ | ||
- | |||
- | You can verify thoses signatures with the verify command | ||
- | |||
- | < | ||
- | # svk verify -r revision | ||
- | </ | ||