October 31, 2006
GNU/Arch mini howto
Set the author id
tla my-id "Thomas Nagy
Create an archive and set it as default repository
tla make-archive tnagy256$$ATyahoo.fr--2004 /mnt/usb/archdir/2004/
tla my-default-archive tnagy256$$ATyahoo.fr--2004
Check if it worked
tla my-default-archive
Create a new project
tla archive-setup kdissert--main--0.3
Check if the project creation did work
tla categories
tla branches kdissert
tla versions kdissert-main
Transform the kdissert directory into a project directory
cd ~/KDISSERT/kdissert/
tla init-tree kdissert--main--0.3
Add/remove files to the repository
tla add src/main.cpp
tla delete src/main.c
tla inventory --source
Import the files to the default repository
vim `tla make-log`
tla import
Commit the changes
vim `tla make-log`
tla commit
To check the changes between one’s directory and the repository
tla changes --diffs
Get the latest sources for a project
tla get kdissert--main--0.3 kdissert
Reverting a file
tla file-diffs foo.cpp|patch -R
if you use bash, the following function can be used
function revert {
touch $1;
tla file-diffs $1 | patch -R
}