|
|
Repository | ||||||||||||||||||||||||||||||||||||||||||||
|
|
GeneralThe platform offers two different source code repositories:
Note: Don't miss the 's' in "https"! The password needed to read-access the AOS repository can be requested by mail to ocp _at_ inf.ethz.ch. If you would like to make use of the community repository, please send us the user name you like and ask for a password. The server can be accessed using a Web Browser or by client software. There is an unoffical mercurial mirror on Google code (maintained by Soren Renner): You can also find sporadically created A2 ISO images (serial trace enabled to COM1 with 112 KBaud) in the download area of the Google code mirror: AOS/WinAOS Repository Structure
The repository contains a fully functional WinAOS system. To start it, just execute Aos.exe found in /trunk/WinAos/ Community RepositoryAll people that are interested in this repository have full read-write access to it. Suggestion: As a first step, create a personal folder (e.g. using your user name) Notes:
MirroringYou can create a local copy (also known as "mirror") of any Subversion repository for offline access using the command files shown below. You will need a command-line Subversion client, particularily the svnadmin.exe and svnsync.exe programs (see links in the Client Software section). You must remember to treat the mirror repositories as read-only. If you commit to a mirror by accident, you won't be able to update it from the central ETHZ server, and you'll have to redownload it. Creating mirrorsTo create mirrors for the
Wait for the mirrors to be created and data downloaded, which will take some time: Updating mirrorsTo update the local mirrors:
The command filesNewMirror.bat@echo off if %1 == "" goto :NoParam setlocal rem Put source and target URLs here, no trailing slashes. set SourceURL=https://www.ocp.inf.ethz.ch/svn set TargetURL=file:///d:/svn/Mirrors rem Create the new repository. mkdir %1 svnadmin create %1 rem Allow property changes (necessary for svnsync). echo exit 0 > %1\hooks\pre-revprop-change.bat rem Perform synchronization. svnsync init %TargetURL%/%1 %SourceURL%/%1 svnsync sync %TargetURL%/%1 rem Disable property changes. del %1\hooks\pre-revprop-change.bat goto :End :NoParam echo Usage: %~nx0 repoName echo repoName is the name of the folder/repository to mirror. echo (c) Alexander Iljin, 2010 :End endlocal SyncRevs.bat@echo off if "%1" == "" goto :NoParams setlocal rem Don't add trailing slashes to the URLs set TargetURL=file:///d:/svn/Mirrors rem Allow property changes (necessary for svnsync). echo exit 0 > %1\hooks\pre-revprop-change.bat rem Perform synchronization. svnsync sync %TargetURL%/%1 rem Disable property changes. del %1\hooks\pre-revprop-change.bat goto :End :NoParams echo Usage: %~nx0 repoName echo repoName - name of the folder/repository to update from the net. echo (c) Alexander Iljin, 2010 :End endlocal UpdateMirrors.bat@echo off echo Synchronizing all repositories in the current folder... for /d %%i in (*) do call SyncRevs.bat %%i echo Finished. GitAnother option is to use Git, and its git-svn subcommand. The command lines to create mirrors of the repositories would be:
To update a repository, run the following command inside the repository:
Git advantages over Subversion mirror
Git disadvantages
Client SoftwareIt is possible to access the repositories using a standard webbrowser, but for the full functionality, a software client is highly recommended. We use ToirtoiseSVN which is a freeware program available for Microsoft Windows operating systems (see http://tortoisesvn.net/), but any other subversion client is also fine. If you want to use a command-line tool (necessary for mirroring), you can find one here: http://www.sliksvn.com/. For viewing file differences, we use WinMerge (also freeware for Microsoft Windows operating systems, see http://www.winmerge.org/). In particular we have a WinMerge plugin that enables you to view differences of files using the Oberon text format. The plugin can be found in the AOS repository in the folder /aos/trunk/tools/WinMerge/. The file install.txt which is also located there provides a short description of how to install the plugin. How can I get my contributions into the main AOS repository?Post a merge request at http://www.ocp.inf.ethz.ch/forum/index.php/board,10.0.html. We are looking forward for interesting contributions! |
|
Copyright © 2007 ETH Zürich
|
Page last modified on August 30, 2011, at 10:55 AM
|