[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Questions about Monotone
From: |
Tero Koskinen |
Subject: |
Re: [Monotone-devel] Questions about Monotone |
Date: |
Wed, 8 Oct 2008 20:52:40 +0300 |
Hi,
On Wed, 08 Oct 2008 18:43:00 +0200 Daniel Carrera wrote:
> Hi all,
>
> Ok, I finally got a chance to read about branches in Monotone. I just
> have one (possibly complex) question. I make a branch:
>
> $ mtn commit --branch=org.foo.branch --message='Feature A'
>
>
> From the documentation I get the impression that the original branch
> and the new branch for Feature A both reside in the *same* directory.
Branches are put in the same *database*.
Monotone separates the repository (.mtn database) and the checkout
like Subversion or CVS does.
> The documentation doesn't say so explicitly, but when I see:
>
> $ mtn ls branches
> jp.co.juicebot.jb7
> jp.co.juicebot.jb7.muffins
Monotone is clever enough to figure out which database to use
if you call it from your checkout directory.
Try to run following command:
cd / && mtn --db=$MY_MONOTONE_DATABASE_HERE ls branches
If you don't remember the location of your database, look
at the _MTN directory in your checkout directory.
The directory should have file 'options' which lists
some metadata for the current checkout.
You can change between branches using the update command:
$ mtn up -rh:CHANGE_TO_THIS_BRANCH
(or alternatively: mtn up -b CHANGE_TO_THIS_BRANCH)
--
Tero Koskinen <address@hidden>
[Monotone-devel] Re: Questions about Monotone, Lapo Luchini, 2008/10/09