Archives/HOWTOarch

This page is a basic intro to tla. It's commands are almost identical to those of baz, so use whatever you like. I do not know what is or was the difference, and you won't find any too, if you need this tutorial... Just replace tla by baz in the shell commands that follow... This introduction is not very verbose, to have a really good, but longer one, visit http://www.gnu.org/software/gnu-arch/tutorial/

 

Contents

  1. registering / creating an archive
  2. branch
  3. get (checkout)
  4. undo
  5. commit
  6. merge

/!\ The archives used here might be deprecated, for the actual archives, please see Code_source

First thing you have to do after installing tla, you need to register yourself. (You won't use my name, will you?) 

 tla my-id "Michael Karlen <michael.karlen@epfl.ch>"

 

registering / creating an archive

 

branch

If you have to read this tutorial, it's quite likely you haven't got write access to the main infoscience archive. But perhaps you want to contribute some code and the Boss will merge it later on. So you have to branch the main archive to your place. Suppse you have two archives registered, one you want to branch and an empty one, respectively: 

 baz branch infoscience@epfl.ch--2005/framework--devel--1.0 michael.karlen@epfl.ch--2005/framework--devel--1.0

 

get (checkout)

To get a working copy of a registered archive, type 

 baz get michael.karlen@epfl.ch--2005/framework--devel--1.0 filters

So a new directory named filters is created. 

 

undo

To revert uncommitted local changes run 

baz undo <revision-or-patch-name>

for example: 

kis@ditdevsrv12 - infoscience > tla undo infoscience@epfl.ch--2005/infoscience--devel--1.0--patch-273

 

commit

Remember, to commit changes, you need write-access to that archive: 

 tla commit -s 'this is a small, but precise description of what you changed'

 

merge

If the main branch has changed, and you want to update your working branch, use: (It also works the other way round...) 

 tla star-merge infoscience@epfl.ch--2005/framework--devel--1.0

It is strongly recommended to make a commit before and after a merge, so you can undo potential errors and bugs introduced. 

But if you are working on a read-only archive, just use: 

 tla replay

Archives/HOWTO_arch (last edited 2011-06-03 06:35:12 by localhost)