Skip to content
Fossil Changes To Branching
Login

Changes To Branching

Changes to "Branching" between 2008-10-19 14:52:08 and 2008-10-19 15:44:45

︙
42
43
44
45
46
47
48




















42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<br>
# continue testing work<br>
hg branch testing<br>
<br>
But with fossil i need to use UUID? How can i automate this work?

... commits</div id="6f02643c22ea3612">

<hr><div id="9b139c0ef4c84e4e"><i>On 2008-10-19 15:44:45 UTC eric added:</i><br />
But if you could say<br>

fossil tag branch testing

what should the branch be based on? Your current checkout? The latest descendant of your current checkout? The latest checkin in the "main branch"? Which should it default to? Should fossil sync with the central repository first, if there is one and if your local fossil knows what it is?

If you want to start from the head of the "main branch", or any branch, what if there is an unintended fork there cause by someone syncing a local repository? If there is should you require a merge?

I think you can only answer these questions based on some single view of the change process that suits your situation. If you know what you will always do, you can write a wrapper for fossil in you favourite scripting language.

For instance (and only by way of example) branching based on the current checkout can be done by

<code>
fossil tag branch testing `fossil info|sed -n '/checkout: */s///p'`<br>
</code>
 

As for going back to the main branch, there is nothing stopping you from tagging that with the name "default", though the best time to do it is when you create a new repository. And that doesn't solve the problem of which fork to choose, or does it mean going back to where <b>you</b> were on that branch?</div id="9b139c0ef4c84e4e">