Fossil with Commonmark

Update of "Branching"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: e30533ccc1986ee177295ac390e16d6b974e6ff6
Page Name:Branching
Date: 2008-10-19 14:52:08
Original User: anonymous
Parent: f4ecbbb4a4e9b1eade5248b6ac4b624e7a7692c3 (diff)
Next 264ae066468eecf307e8a410887f29c33a1947e3
Content

We probably need some notes on branching.

For now, here is a response to ticket [f90265fc83]:

# create testing branch
fossil tag branch testing uuid1

# where uuid1 is the point at which you want to branch
# Note that the above command creates a new checkin which is a
# sibling of uuid1 and identical to it.

# You still need to tell fossil to use it in the working directory
fossil update testing

# do some experimental work
...

# back to main branch
fossil update uuid1
fossil update

# The second update is needed because the main branch may have
# moved on from uuid1.

Note that fossil has no concept of a default branch, and in the presence of multiple forks and branches you are usually safer to give an explicit argument to fossil update.

Because fossil supports distributed operation, forks which are not deliberate branches can be quite common, and there is probably no safe algorithm for "the latest non-branch UUID".


On 2008-10-19 14:52:08 UTC anonymous added:
Here is an example of branches work with mercurial

# switch to testing branch
hg branch testing
... do some commits

# switch to default branch
hg branch default
... do another commits

# continue testing work
hg branch testing

But with fossil i need to use UUID? How can i automate this work?

... commits