[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] Creating and joining branches...
From: |
Esben Mose Hansen |
Subject: |
[Gnu-arch-users] Creating and joining branches... |
Date: |
Wed, 11 Aug 2004 10:53:00 +0000 |
User-agent: |
KMail/1.6.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I can't seem to find a clear how-to to do these two simple tasks:
1. Creating a branch
Assume you're cd'ed to a tree with a branch "old-branch" from which you
want
to create a new branch "new-branch". I always use --0 as version numbers, so
let's ignore them for now. The best method I have been able to find is:
$ tla tag -S project--new-branch--0
Is that the best way to do this? I must say that I dislike using "tag"
as the
non-existing command "create-branch", but other than that the above method is
fine, if a bit hard to find.
2. Joining/switching to a branch
Let us assume I've a project tree on some branch "branch-apple" and
want to
switch to another branch "branch-cheese", which somewhere will have a common
ancestor. Below is the only method I've managed to make work. There has *got*
to be a better way:
$ cd ..
$ rm -rf project
$ tla get project--branch-cheese project
$ cd project
$ rebuilt Makefiles and other temporary files from scratch.
Please help.... I'll then add then answers to the Wiki, so the next user will
be able to find this info.
Thanks.
- --
regards, Esben
Homepage: http://www.mosehansen.dk
Signature fingerprint at http://www.mosehansen.dk/about
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBGfqPrfnftt13wXIRAhgCAJ0csvhqwBri4GTAUvFNKgKKDp+IuQCfZ4Qk
g9keW2tV9/PpNYNqw+57Z1s=
=w2xy
-----END PGP SIGNATURE-----